Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: base/native_library_test_library.cc

Issue 2277863002: Enable loading native libraries with RTLD_DEEPBIND (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "build/build_config.h"
6
7 #if defined(OS_WIN)
8 #define EXPORT __declspec(dllexport)
9 #else
10 #define EXPORT __attribute__((visibility("default")))
11 #endif
12
13 extern "C" {
14
15 // This symbol name must match the exported symbol in
16 // native_library_unittest.cc.
17 int EXPORT g_native_library_test_symbol = 0;
18
19 int EXPORT GetTestValue() { return 42; }
20
21 bool EXPORT IsSameTestSymbolAddress(int* address) {
22 return &g_native_library_test_symbol == address;
23 }
24
25 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698