[vlc-devel] commit: We need <inttypes.h>, always ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu May 1 22:11:28 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Thu May  1 23:08:41 2008 +0300| [4b8ce41a01d64ef213fde735fc73e6323aa0cdee]

We need <inttypes.h>, always

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4b8ce41a01d64ef213fde735fc73e6323aa0cdee
---

 include/vlc_common.h |   39 +--------------------------------------
 1 files changed, 1 insertions(+), 38 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 1341493..60406f2 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -46,6 +46,7 @@
 
 #include <string.h>
 #include <stdio.h>
+#include <inttypes.h>
 
 #ifdef HAVE_SYS_TYPES_H
 #   include <sys/types.h>
@@ -54,44 +55,6 @@
 /*****************************************************************************
  * Basic types definitions
  *****************************************************************************/
-#if defined( HAVE_INTTYPES_H )
-#   include <inttypes.h>
-#elif defined( SYS_CYGWIN )
-    /* Cygwin only defines half of these... */
-    typedef u_int8_t            uint8_t;
-    typedef u_int16_t           uint16_t;
-    typedef u_int32_t           uint32_t;
-    typedef u_int64_t           uint64_t;
-#else
-    /* Fallback types (very x86-centric, sorry) */
-    typedef unsigned char       uint8_t;
-    typedef signed char         int8_t;
-    typedef unsigned short      uint16_t;
-    typedef signed short        int16_t;
-    typedef unsigned int        uint32_t;
-    typedef signed int          int32_t;
-#   if defined( _MSC_VER ) \
-      || defined( UNDER_CE ) \
-      || ( defined( WIN32 ) && !defined( __MINGW32__ ) )
-    typedef unsigned __int64    uint64_t;
-    typedef signed __int64      int64_t;
-#   else
-    typedef unsigned long long  uint64_t;
-    typedef signed long long    int64_t;
-#   endif
-    typedef uint32_t            uintptr_t;
-    typedef int32_t             intptr_t;
-#endif
-
-/* Systems that don't have stdint.h may not define INT64_MIN and
-   INT64_MAX */
-#ifndef INT64_MIN
-#define INT64_MIN (-9223372036854775807LL-1)
-#endif
-#ifndef INT64_MAX
-#define INT64_MAX (9223372036854775807LL)
-#endif
-
 #if defined( WIN32 ) || defined( UNDER_CE )
 #   include <malloc.h>
 #   ifndef PATH_MAX




More information about the vlc-devel mailing list