]> cloudbase.mooo.com Git - irmp.git/blobdiff - irsnd.h
Version 2.1.0: port to PIC C18 compiler
[irmp.git] / irsnd.h
diff --git a/irsnd.h b/irsnd.h
index f8ece78e02656ca3f71b8ebdaeb1dacc36704d55..a791ce558076832aea8b4bfa321f47599aa304f3 100644 (file)
--- a/irsnd.h
+++ b/irsnd.h
 #ifndef _WC_IRSND_H_\r
 #define _WC_IRSND_H_\r
 \r
-#define IRSND_NO_REPETITIONS         0    // no repetitions\r
-#define IRSND_MAX_REPETITIONS       14    // max # of repetitions\r
-#define IRSND_ENDLESS_REPETITION    15    // endless repetions\r
-#define IRSND_REPETITION_MASK       0x0F  // lower nibble of flags\r
+#if defined(__18CXX)                                       // Microchip C18 declaration of missing typedef\r
+typedef unsigned char               uint8_t;\r
+typedef unsigned int                uint16_t;\r
+#endif \r
+\r
+#define IRSND_NO_REPETITIONS         0      // no repetitions\r
+#define IRSND_MAX_REPETITIONS       14      // max # of repetitions\r
+#define IRSND_ENDLESS_REPETITION    15      // endless repetions\r
+#define IRSND_REPETITION_MASK       0x0F    // lower nibble of flags\r
 \r
 /**\r
  *  Initialize ISND encoder\r