Commit a805ac7c by Jeff Gilbert Committed by Commit Bot

Allow overriding ANGLE_PLATFORM_EXPORT.

Bug: angleproject:4365 Change-Id: I4098ebdd718624e9d0578e0ee69f0a84a5b78183 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2033064 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 71153201
...@@ -14,14 +14,16 @@ ...@@ -14,14 +14,16 @@
#define EGL_PLATFORM_ANGLE_PLATFORM_METHODS_ANGLEX 0x3482 #define EGL_PLATFORM_ANGLE_PLATFORM_METHODS_ANGLEX 0x3482
#if defined(_WIN32) #if !defined(ANGLE_PLATFORM_EXPORT)
# if !defined(LIBANGLE_IMPLEMENTATION) # if defined(_WIN32)
# define ANGLE_PLATFORM_EXPORT __declspec(dllimport) # if !defined(LIBANGLE_IMPLEMENTATION)
# else # define ANGLE_PLATFORM_EXPORT __declspec(dllimport)
# define ANGLE_PLATFORM_EXPORT __declspec(dllexport) # else
# define ANGLE_PLATFORM_EXPORT __declspec(dllexport)
# endif
# elif defined(__GNUC__) || defined(__clang__)
# define ANGLE_PLATFORM_EXPORT __attribute__((visibility("default")))
# endif # endif
#elif defined(__GNUC__) || defined(__clang__)
# define ANGLE_PLATFORM_EXPORT __attribute__((visibility("default")))
#endif #endif
#if !defined(ANGLE_PLATFORM_EXPORT) #if !defined(ANGLE_PLATFORM_EXPORT)
# define ANGLE_PLATFORM_EXPORT # define ANGLE_PLATFORM_EXPORT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment