diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-04-17 08:48:34 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-04-17 08:48:34 +0000 |
commit | 640664c2435b568b69ce2fb9b5abf99fd838a054 (patch) | |
tree | 993da30bc524cc1b150d940f9fc55868bcc424c8 /gst | |
parent | 9e13de6621f72f8021004aba5c247f283ac34173 (diff) | |
download | gst-plugins-bad-640664c2435b568b69ce2fb9b5abf99fd838a054.tar.gz gst-plugins-bad-640664c2435b568b69ce2fb9b5abf99fd838a054.tar.bz2 gst-plugins-bad-640664c2435b568b69ce2fb9b5abf99fd838a054.zip |
gst/nsf/types.h: Rename #ifndef header guard symbol to something less generic, so types.h doesn't get skipped over wh...
Original commit message from CVS:
* gst/nsf/types.h:
Rename #ifndef header guard symbol to something less generic, so
types.h doesn't get skipped over when compiling on MingW. Include
GLib headers and use those to set the endianness and the basic
types so that this isn't entirely broken for non-x86 architectures.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/nsf/types.h | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/gst/nsf/types.h b/gst/nsf/types.h index 04d7bb6a..8ba17e91 100644 --- a/gst/nsf/types.h +++ b/gst/nsf/types.h @@ -23,11 +23,17 @@ ** $Id$ */ -#ifndef _TYPES_H_ -#define _TYPES_H_ +#ifndef _NSF_TYPES_H_ +#define _NSF_TYPES_H_ +#include <glib.h> /* for types, endianness */ + +#if G_BYTE_ORDER == G_LITTLE_ENDIAN /* Define this if running on little-endian (x86) systems */ #define HOST_LITTLE_ENDIAN +#else +#undef HOST_LITTLE_ENDIAN +#endif #ifdef __GNUC__ #define INLINE static inline @@ -37,16 +43,15 @@ #define INLINE static #endif -/* These should be changed depending on the platform */ -typedef char int8; -typedef short int16; -typedef int int32; +typedef gint8 int8; +typedef gint16 int16; +typedef gint32 int32; -typedef unsigned char uint8; -typedef unsigned short uint16; -typedef unsigned int uint32; +typedef guint8 uint8; +typedef guint16 uint16; +typedef guint32 uint32; -typedef uint8 boolean; +typedef guint8 boolean; #ifndef TRUE #define TRUE 1 @@ -79,10 +84,17 @@ typedef uint8 boolean; #define ASSERT_MSG(msg) #endif -#endif /* _TYPES_H_ */ +#endif /* _NSF_TYPES_H_ */ /* ** $Log$ +** Revision 1.3 2007/04/17 08:48:34 tpm +** * gst/nsf/types.h: +** Rename #ifndef header guard symbol to something less generic, so +** types.h doesn't get skipped over when compiling on MingW. Include +** GLib headers and use those to set the endianness and the basic +** types so that this isn't entirely broken for non-x86 architectures. +** ** Revision 1.2 2006/07/14 09:11:11 wtay ** * gst/nsf/Makefile.am: ** * gst/nsf/memguard.c: |