workaround a problem with the harmattan gcc
[drnoksnes] / sa1.h
diff --git a/sa1.h b/sa1.h
index 28d1a33..b44f474 100644 (file)
--- a/sa1.h
+++ b/sa1.h
@@ -43,6 +43,8 @@
 
 #include "memmap.h"
 
+START_EXTERN_C
+
 struct SSA1Registers {
     uint8   PB;
     uint8   DB;
@@ -97,6 +99,8 @@ struct SSA1 {
 extern struct SSA1Registers SA1Registers;
 extern struct SSA1 SA1;
 
+END_EXTERN_C
+
 #ifdef USE_SA1
 
 #define SA1CheckZero() (SA1._Zero == 0)