diff --git a/include/export.h b/include/export.h index cf144f92a5..892e10d2dd 100644 --- a/include/export.h +++ b/include/export.h @@ -10,14 +10,14 @@ #define LIBGLESV2_EXPORT_H_ #if !defined(ANGLE_EXPORT) -#if defined(_WIN32) +#if defined(_WIN32) && !defined(ANGLE_STATIC) #if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \ defined(LIBANGLE_UTIL_IMPLEMENTATION) # define ANGLE_EXPORT __declspec(dllexport) # else # define ANGLE_EXPORT __declspec(dllimport) # endif -#elif defined(__GNUC__) +#elif defined(__GNUC__) && !defined(ANGLE_STATIC) #if defined(LIBGLESV2_IMPLEMENTATION) || defined(LIBANGLE_IMPLEMENTATION) || \ defined(LIBANGLE_UTIL_IMPLEMENTATION) # define ANGLE_EXPORT __attribute__((visibility ("default"))) diff --git a/include/KHR/khrplatform.h b/include/KHR/khrplatform.h index 68fca48271..bc5b299a97 100755 --- a/include/KHR/khrplatform.h +++ b/include/KHR/khrplatform.h @@ -97,9 +97,9 @@ *------------------------------------------------------------------------- * This precedes the return type of the function in the function prototype. */ -#if defined(_WIN32) && !defined(__SCITECH_SNAP__) +#if defined(_WIN32) && !defined(__SCITECH_SNAP__) && !defined(ANGLE_STATIC) # define KHRONOS_APICALL __declspec(dllimport) -#elif defined (__SYMBIAN32__) +#elif defined (__SYMBIAN32__) && !defined(ANGLE_STATIC) # define KHRONOS_APICALL IMPORT_C #elif defined(__ANDROID__) # include