Protect MetroWerks specific pragmas with #ifdef's
authorbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 6 Jun 2004 16:11:17 +0000 (16:11 +0000)
committerbernie <bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 6 Jun 2004 16:11:17 +0000 (16:11 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@20 38d2e660-2303-0410-9eaa-f027e97ec537

mware/fifobuf.h

index e04793aeb7983c1fe5a49f792affcff2104a05d3..1c81c62a61ce2b11451ee289727a45ae09c6c227 100755 (executable)
@@ -41,6 +41,9 @@
 
 /*
  * $Log$
+ * Revision 1.4  2004/06/06 16:11:17  bernie
+ * Protect MetroWerks specific pragmas with #ifdef's
+ *
  * Revision 1.3  2004/06/03 15:04:10  aleph
  * Merge improvements from project_ks (mainly inlining)
  *
@@ -98,9 +101,13 @@ INLINE bool fifo_isempty(const FIFOBuffer *fb);
 INLINE bool fifo_isempty_locked(const FIFOBuffer *fb);
 INLINE bool fifo_isfull(const FIFOBuffer *fb);
 INLINE bool fifo_isfull_locked(const FIFOBuffer *fb);
+#ifdef __MWERKS__
 #pragma interrupt called
+#endif
 INLINE void fifo_push(FIFOBuffer *fb, unsigned char c);
+#ifdef __MWERKS__
 #pragma interrupt called
+#endif
 INLINE unsigned char fifo_pop(FIFOBuffer *fb);
 INLINE void fifo_flush(FIFOBuffer *fb);
 INLINE void fifo_init(FIFOBuffer *fb, unsigned char *buf, size_t size);