mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-21 21:35:06 +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
3565eacf87
@ -140,15 +140,26 @@ typedef _W64 int ptrdiff_t;
|
||||
* (mem, 2004-01-04)
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
#if defined(__APPLE__) || defined(__linux__)
|
||||
# if defined(__cplusplus)
|
||||
# include <cstddef>
|
||||
# include <cstdint>
|
||||
# else
|
||||
# include <stddef.h>
|
||||
# include <stdint.h>
|
||||
# endif
|
||||
#else
|
||||
|
||||
# include <stddef.h>
|
||||
|
||||
/* SGI MIPSPro doesn't like stdint.h in C++ mode */
|
||||
/* ID: 3376260 Solaris 9 has inttypes.h, but not stdint.h */
|
||||
|
||||
#if (defined(__sgi) || defined(__sun)) && !defined(__GNUC__)
|
||||
#include <inttypes.h>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
# if (defined(__sgi) || defined(__sun)) && !defined(__GNUC__)
|
||||
# include <inttypes.h>
|
||||
# else
|
||||
# include <stdint.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define GLEW_APIENTRY_DEFINED
|
||||
|
Loading…
Reference in New Issue
Block a user