#ifndef SYSTEM_H
#define SYSTEM_H
-#if defined(MSDOS)
-#define PLATFORM_MSDOS
-#elif defined(WIN32)
-#define PLATFORM_WIN32
-#else
-#define PLATFORM_UNIX
-#endif
+#include "platform.h"
-#if defined(MSDOS)
+#if defined(PLATFORM_MSDOS)
#include "msdos.h"
#endif
#endif
-/* system-wide contant definitions */
+/* contant definitions */
#define DEFAULT_DEPTH 0
#define FULLSCREEN_AVAILABLE TRUE
-/* system-wide type definitions */
+/* type definitions */
typedef int (*EventFilter)(const Event *);
-/* system-wide function definitions */
+/* structure definitions */
+
+struct SystemInfo
+{
+ boolean audio_available;
+ boolean audio_loops_available;
+ int audio_process_id;
+ int audio_process_pipe[2];
+ int audio_fd;
+};
+
+
+/* function definitions */
inline void InitBufferedDisplay(DrawBuffer *, DrawWindow *);
inline int GetDisplayDepth(void);
inline boolean PendingEvent(void);
inline void NextEvent(Event *event);
inline Key GetEventKey(KeyEvent *, boolean);
+inline boolean CheckCloseWindowEvent(ClientMessageEvent *);
#endif /* SYSTEM_H */