* This precedes the return type of the function in the function prototype.
*/
#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
-# define KHRONOS_APICALL __declspec(dllimport)
+# if defined(KHRONOS_DLL_EXPORTS)
+# define KHRONOS_APICALL __declspec(dllexport)
+# else
+# define KHRONOS_APICALL __declspec(dllimport)
+# endif
#elif defined (__SYMBIAN32__)
# define KHRONOS_APICALL IMPORT_C
#elif (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303) \
#ifndef _VGPLATFORM_H\r
#define _VGPLATFORM_H\r
\r
+#include <KHR/khrplatform.h>\r
+\r
#ifdef __cplusplus\r
extern "C" {\r
#endif\r
\r
-#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303\r
-# define VG_API_CALL __attribute__((visibility("default")))\r
-# define VGU_API_CALL __attribute__((visibility("default")))\r
-#endif\r
-\r
#ifndef VG_API_CALL \r
#if defined(OPENVG_STATIC_LIBRARY)\r
# define VG_API_CALL\r
#else\r
-# if defined(_WIN32) || defined(__VC32__) /* Win32 */\r
-# if defined (OPENVG_DLL_EXPORTS)\r
-# define VG_API_CALL __declspec(dllexport)\r
-# else\r
-# define VG_API_CALL __declspec(dllimport)\r
-# endif\r
-# else \r
-# define VG_API_CALL extern\r
-# endif /* defined(_WIN32) ||... */\r
+# define VG_API_CALL KHRONOS_APICALL\r
#endif /* defined OPENVG_STATIC_LIBRARY */\r
#endif /* ifndef VG_API_CALL */\r
\r
#if defined(OPENVG_STATIC_LIBRARY)\r
# define VGU_API_CALL\r
#else\r
-# if defined(_WIN32) || defined(__VC32__) /* Win32 */\r
-# if defined (OPENVG_DLL_EXPORTS)\r
-# define VGU_API_CALL __declspec(dllexport)\r
-# else\r
-# define VGU_API_CALL __declspec(dllimport)\r
-# endif\r
-# else \r
-# define VGU_API_CALL extern\r
-# endif /* defined(_WIN32) ||... */\r
+# define VGU_API_CALL KHRONOS_APICALL\r
#endif /* defined OPENVG_STATIC_LIBRARY */\r
#endif /* ifndef VGU_API_CALL */\r
\r