rnd-20030210-2-src
[rocksndiamonds.git] / src / libgame / system.h
index 03250949d9584fab32f7f372ee86412c0e1d6369..511355d31e0ce28a64ce8d9f98393065978d5b12 100644 (file)
 #define VERSION_PATCH(x)       ((x) % 100)
 
 /* functions for parent/child process identification */
+#if defined(PLATFORM_UNIX)
 #define IS_PARENT_PROCESS()    (audio.mixer_pid != getpid())
 #define IS_CHILD_PROCESS()     (audio.mixer_pid == getpid())
-
+#else
+#define IS_PARENT_PROCESS()    TRUE
+#define IS_CHILD_PROCESS()     FALSE
+#endif
 
 /* type definitions */
 typedef int (*EventFilter)(const Event *);