fix borland compilation problem

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@375 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2005-01-29 16:59:36 +00:00
parent 41affc7565
commit 1a007610db

View File

@ -30,7 +30,7 @@
#define GLEW_APIENTRY_DEFINED #define GLEW_APIENTRY_DEFINED
# if defined(__CYGWIN__) || defined(__MINGW32__) # if defined(__CYGWIN__) || defined(__MINGW32__)
# define APIENTRY __stdcall # define APIENTRY __stdcall
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) # elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
# define APIENTRY __stdcall # define APIENTRY __stdcall
# else # else
# define APIENTRY # define APIENTRY
@ -58,7 +58,7 @@
#define WINGDIAPI __declspec(dllimport) #define WINGDIAPI __declspec(dllimport)
#endif #endif
/* <ctype.h> */ /* <ctype.h> */
#if defined(_MSC_VER) && !defined(_WCHAR_T_DEFINED) #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED)
typedef unsigned short wchar_t; typedef unsigned short wchar_t;
# define _WCHAR_T_DEFINED # define _WCHAR_T_DEFINED
#endif #endif