diff code_part1/OSTC_code_asm_part1/shared_definitions.h @ 548:c35473dc6831

Make shared headers UNIX compatibles.
author JeanDo
date Sat, 21 Jan 2012 15:36:44 +0100
parents f5a06b9e2fef
children 6526a5b058b7
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/shared_definitions.h	Fri Jan 20 10:30:33 2012 +0100
+++ b/code_part1/OSTC_code_asm_part1/shared_definitions.h	Sat Jan 21 15:36:44 2012 +0100
@@ -69,7 +69,9 @@
 #ifdef __18CXX
     //---- BANK 2 DATA -------------------------------------------------------
     // Gather all data C-code --> ASM-code
-#   pragma udata overlay bank2=0x200
+#   ifndef UNIX
+#       pragma udata overlay bank2=0x200
+#   endif
 #else
 bank2   udata_ovr  0x200
 #endif
@@ -122,7 +124,9 @@
 #ifdef __18CXX
     //---- BANK 3 DATA -------------------------------------------------------
     // Gather all data ASM-code --> C-code
-#   pragma udata overlay bank3=0x300
+#   ifndef UNIX
+#       pragma udata overlay bank3=0x300
+#   endif
 #else
     ; In ASM, put the same bank, in overlay mode, at the same address
 bank3   udata_ovr  0x300