diff src/gpf2/osl/os_tim_ir.c @ 502:b4dd8c7e84ce

OSL: os_tim_ir.c compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 24 Jun 2018 23:58:05 +0000
parents 91e8dac34ada
children
line wrap: on
line diff
--- a/src/gpf2/osl/os_tim_ir.c	Sun Jun 24 23:53:33 2018 +0000
+++ b/src/gpf2/osl/os_tim_ir.c	Sun Jun 24 23:58:05 2018 +0000
@@ -8,8 +8,7 @@
 
 /* set of included headers from COFF symtab: */
 #include <stdio.h>
-#include "gpfconf.h"	/* FreeCalypso addition */
-#include "../../nucleus/nucleus.h"
+#include "nucleus.h"
 #include "typedefs.h"
 #include "os.h"
 #include "gdi.h"
@@ -31,7 +30,11 @@
 extern NU_SEMAPHORE TimSemCB;
 extern NU_TIMER os_timer_cb;
 
+#ifdef __GNUC__
 #define	BARRIER	asm volatile ("": : :"memory")
+#else
+#define	BARRIER	/* prayer */
+#endif
 
 void
 timer_error(int err)