diff options
author | Sven Gothel <[email protected]> | 2011-06-11 01:50:42 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-06-11 01:50:42 +0200 |
commit | 536dc9979ae965fd5fc0e14bb306c6e2d12ac584 (patch) | |
tree | aa94f1db80145b203e074a3313986897d355aaa6 /src/newt/native | |
parent | 9ea120c599476901fdfcc39f133abf26d7d22c0c (diff) |
Utilize GlueGen's platform independent header for stdin.h, gluegen_stdint.h, .. (remove local copy)
- Use them for gluegen code generation
- Use them for native compilation (cc)
Diffstat (limited to 'src/newt/native')
-rw-r--r-- | src/newt/native/BroadcomEGL.c | 6 | ||||
-rw-r--r-- | src/newt/native/IntelGDL.c | 2 | ||||
-rw-r--r-- | src/newt/native/KDWindow.c | 22 | ||||
-rw-r--r-- | src/newt/native/WindowsWindow.c | 19 | ||||
-rw-r--r-- | src/newt/native/X11Window.c | 9 |
5 files changed, 8 insertions, 50 deletions
diff --git a/src/newt/native/BroadcomEGL.c b/src/newt/native/BroadcomEGL.c index 0cca90420..80b482130 100644 --- a/src/newt/native/BroadcomEGL.c +++ b/src/newt/native/BroadcomEGL.c @@ -31,11 +31,7 @@ * */ -#ifdef _WIN32 - #include <windows.h> -#else - #include <inttypes.h> -#endif +#include <gluegen_stdint.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/newt/native/IntelGDL.c b/src/newt/native/IntelGDL.c index 953181ccc..e287ad1fa 100644 --- a/src/newt/native/IntelGDL.c +++ b/src/newt/native/IntelGDL.c @@ -31,7 +31,7 @@ * */ -#include <inttypes.h> +#include <gluegen_stdint.h> #include <stdlib.h> #include <stdio.h> diff --git a/src/newt/native/KDWindow.c b/src/newt/native/KDWindow.c index be0488fd1..b314f9d44 100644 --- a/src/newt/native/KDWindow.c +++ b/src/newt/native/KDWindow.c @@ -39,27 +39,7 @@ #include <stdio.h> #include <string.h> -#ifdef _WIN32 - /* This typedef is apparently needed for Microsoft compilers before VC8, - and on Windows CE */ - #if !defined(__MINGW64__) && ( defined(UNDER_CE) || _MSC_VER <= 1400 ) - #ifdef _WIN64 - typedef long long intptr_t; - #else - typedef int intptr_t; - #endif - #elif !defined(__MINGW64__) && _MSC_VER <= 1500 - #ifdef _WIN64 // [ - typedef __int64 intptr_t; - #else // _WIN64 ][ - typedef int intptr_t; - #endif // _WIN64 ] - #else - #include <inttypes.h> - #endif -#else - #include <inttypes.h> -#endif +#include <gluegen_stdint.h> #include <KD/kd.h> diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index 95f036b39..5e666631b 100644 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -36,28 +36,13 @@ #include <Windowsx.h> #include <tchar.h> #include <stdlib.h> + // NOTE: it looks like SHFullScreen and/or aygshell.dll is not available on the APX 2500 any more // #ifdef UNDER_CE // #include "aygshell.h" // #endif -/* This typedef is apparently needed for Microsoft compilers before VC8, - and on Windows CE and MingW32 */ -#if !defined(__MINGW64__) && ( defined(UNDER_CE) || _MSC_VER <= 1400 ) - #ifdef _WIN64 - typedef long long intptr_t; - #else - typedef int intptr_t; - #endif -#elif !defined(__MINGW64__) && _MSC_VER <= 1500 - #ifdef _WIN64 // [ - typedef __int64 intptr_t; - #else // _WIN64 ][ - typedef int intptr_t; - #endif // _WIN64 ] -#else - #include <inttypes.h> -#endif +#include <gluegen_stdint.h> #if !defined(__MINGW64__) && _MSC_VER <= 1500 // FIXME: Determine for which MSVC versions .. diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 53dd97d44..5414de966 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -36,12 +36,9 @@ #include <stdio.h> #include <string.h> #include <stdarg.h> -// Building on obsolete platform on SPARC right now -#ifdef __sparc - #include <inttypes.h> -#else - #include <stdint.h> -#endif + +#include <gluegen_stdint.h> + #include <unistd.h> #include <errno.h> #include <X11/Xlib.h> |