projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20070125-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
platform.h
diff --git
a/src/libgame/platform.h
b/src/libgame/platform.h
index d8773420bb4a8b18cf23398364d16f49d178f15e..7ac79f3bbeb2f43ab13376aa12b414a0e21abbe5 100644
(file)
--- a/
src/libgame/platform.h
+++ b/
src/libgame/platform.h
@@
-20,10
+20,13
@@
#if defined(MSDOS)
#define PLATFORM_MSDOS
#if defined(MSDOS)
#define PLATFORM_MSDOS
+#define PLATFORM_STRING "DOS"
#elif defined(WIN32)
#define PLATFORM_WIN32
#elif defined(WIN32)
#define PLATFORM_WIN32
+#define PLATFORM_STRING "Windows"
#else
#define PLATFORM_UNIX
#else
#define PLATFORM_UNIX
+#define PLATFORM_STRING "Unix"
#endif
#endif
@@
-54,33
+57,47
@@
#if defined(linux)
#define PLATFORM_LINUX
#if defined(linux)
#define PLATFORM_LINUX
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "Linux"
#endif
#if defined(__FreeBSD__)
#define PLATFORM_FREEBSD
#define PLATFORM_BSD
#endif
#if defined(__FreeBSD__)
#define PLATFORM_FREEBSD
#define PLATFORM_BSD
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "FreeBSD"
#endif
#if defined(__NetBSD__)
#define PLATFORM_NETBSD
#define PLATFORM_BSD
#endif
#if defined(__NetBSD__)
#define PLATFORM_NETBSD
#define PLATFORM_BSD
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "NetBSD"
#endif
#if defined(__bsdi__)
#define PLATFORM_BSDI
#define PLATFORM_BSD
#endif
#if defined(__bsdi__)
#define PLATFORM_BSDI
#define PLATFORM_BSD
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "BSDI"
#endif
#if defined(sparc) && defined(sun)
#define PLATFORM_SUNOS
#endif
#if defined(sparc) && defined(sun)
#define PLATFORM_SUNOS
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "Solaris"
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define PLATFORM_MACOSX
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define PLATFORM_MACOSX
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "Mac OS X"
#endif
#if defined(NeXT)
#define PLATFORM_NEXT
#endif
#if defined(NeXT)
#define PLATFORM_NEXT
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "NeXT"
#endif
/* detecting HP-UX by the following compiler keyword definitions:
#endif
/* detecting HP-UX by the following compiler keyword definitions:
@@
-91,6
+108,8
@@
#if defined(__hpux__) || defined(__hpux) || defined(hpux)
#define PLATFORM_HPUX
#if defined(__hpux__) || defined(__hpux) || defined(hpux)
#define PLATFORM_HPUX
+#undef PLATFORM_STRING
+#define PLATFORM_STRING "HP-UX"
#endif
#endif
@@
-102,5
+121,4
@@
#define NETWORK_AVALIABLE
#endif
#define NETWORK_AVALIABLE
#endif
-
#endif /* PLATFORM_H */
#endif /* PLATFORM_H */