From 409b85c217c70ffb36fbf5ecc6ba2860d05f4a4a Mon Sep 17 00:00:00 2001 From: bernie Date: Sun, 6 Jun 2004 16:11:17 +0000 Subject: [PATCH] Protect MetroWerks specific pragmas with #ifdef's git-svn-id: https://src.develer.com/svnoss/bertos/trunk@20 38d2e660-2303-0410-9eaa-f027e97ec537 --- mware/fifobuf.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mware/fifobuf.h b/mware/fifobuf.h index e04793ae..1c81c62a 100755 --- a/mware/fifobuf.h +++ b/mware/fifobuf.h @@ -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); -- 2.25.1