mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-24 06:45:07 +00:00
Include cstddef and cstdint (rather than C versions) for C++ compiler on macOS and Linux
This commit is contained in:
parent
1f833c032f
commit
89c2b52439
@ -140,6 +140,16 @@ typedef _W64 int ptrdiff_t;
|
|||||||
* (mem, 2004-01-04)
|
* (mem, 2004-01-04)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__APPLE__) || defined(__linux__)
|
||||||
|
# if defined(__cplusplus)
|
||||||
|
# include <cstddef>
|
||||||
|
# include <cstdint>
|
||||||
|
# else
|
||||||
|
# include <stddef.h>
|
||||||
|
# include <stdint.h>
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
|
|
||||||
/* SGI MIPSPro doesn't like stdint.h in C++ mode */
|
/* SGI MIPSPro doesn't like stdint.h in C++ mode */
|
||||||
@ -150,6 +160,7 @@ typedef _W64 int ptrdiff_t;
|
|||||||
# else
|
# else
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GLEW_APIENTRY_DEFINED
|
#define GLEW_APIENTRY_DEFINED
|
||||||
#define APIENTRY
|
#define APIENTRY
|
||||||
|
Loading…
Reference in New Issue
Block a user