[xiph-cvs] cvs commit: icecast/src compat.h

Ralph Giles giles at xiph.org
Tue Mar 9 10:33:08 PST 2004



giles       04/03/09 13:33:07

  Modified:    src      compat.h
  Log:
  Include inttypes.h from the compatibility header if it's available and stdint.h is not. This
  provides the stdint types on solaris and a number of other non-C99 platforms.

Revision  Changes    Path
1.4       +3 -1      icecast/src/compat.h

Index: compat.h
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/compat.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- compat.h	29 Jan 2004 01:02:06 -0000	1.3
+++ compat.h	9 Mar 2004 18:33:06 -0000	1.4
@@ -23,7 +23,9 @@
 #  define uint64_t unsigned __int64
 #  define uint32_t unsigned int
 #else
-#  ifdef HAVE_STDINT_H
+#  if defined(HAVE_STDINT_H)
 #    include <stdint.h>
+#  elif defined(HAVE_INTTYPES_H)
+#    include <inttypes.h>
 #  endif
 #endif

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list