[babl] use stdint types for sized data types



commit 30d75dcd6797882e7c87317040be40540f7fe6e7
Author: Ãyvind KolÃs <pippin gimp org>
Date:   Wed May 2 02:27:19 2012 +0200

    use stdint types for sized data types

 babl/base/type-half.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/babl/base/type-half.c b/babl/base/type-half.c
index 987b88f..798b7dd 100644
--- a/babl/base/type-half.c
+++ b/babl/base/type-half.c
@@ -61,6 +61,7 @@
 #include "config.h"
 #include <string.h>
 #include <assert.h>
+#include <stdint.h>
 
 #include "babl.h"
 #include "babl-classes.h"
@@ -69,10 +70,10 @@
 
 
 #define  mwSize              int
-#define  INT16_TYPE          short
-#define UINT16_TYPE unsigned short
-#define  INT32_TYPE          long
-#define UINT32_TYPE unsigned long
+#define  INT16_TYPE          int16_t
+#define UINT16_TYPE          uint16_t
+#define  INT32_TYPE          int32_t
+#define UINT32_TYPE          uint32_t
 
 static int next = 1; /* should be 0 for big endian */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]