Usermode/AxWin3 - Preparing for SDL build
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / common.h
index e074450..1f0e749 100644 (file)
@@ -8,7 +8,12 @@
 #ifndef _COMMON_H_
 #define _COMMON_H_
 
+#ifndef AXWIN_SDL_BUILD
 #include <acess/sys.h>
+#else
+#include <stdio.h>
+#define _SysDebug(f,a...)      fprintf(stderr, f"\n" ,## a)
+#endif
 
 #define TODO(str)      
 
 static inline int MIN(int a, int b)    { return (a < b) ? a : b; }
 static inline int MAX(int a, int b)    { return (a > b) ? a : b; }
 
-// === GLOBALS ===
-extern int     giTerminalFD;
-extern const char      *gsTerminalDevice;
-
 extern int     giScreenWidth, giScreenHeight;
 
-// === FUNCTIONS ===
-// --- Input ---
-extern int     Input_Init(void);
-extern void    Input_FillSelect(int *nfds, fd_set *set);
-extern void    Input_HandleSelect(fd_set *set);
-// --- IPC ---
-extern void    IPC_Init(void);
-extern void    IPC_FillSelect(int *nfds, fd_set *set);
-extern void    IPC_HandleSelect(fd_set *set);
-
 #endif
 

UCC git Repository :: git.ucc.asn.au