[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/klaptopdaemon
From:       Dirk Mueller <mueller () kde ! org>
Date:       2003-11-06 15:07:58
[Download RAW message or body]

CVS commit by mueller: 

ok, *now* it is portable. forget the old patch ;-)
Also fix signedness as spotted by Maksim. Thanks.


  M +9 -4      thinkpad_common.h   1.4


--- kdeutils/klaptopdaemon/thinkpad_common.h  #1.3:1.4
@@ -31,4 +31,10 @@
 #define __THINKPAD_COMMON_H__
 
+#include <config.h>
+#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
 /* All module (etc.) names should be no longer than this: */
 #define LEN_NAME_MAX 80
@@ -65,8 +71,7 @@
 
 /****** types ******/
-#include <sys/types.h>
-typedef int8_t byte;
-typedef int16_t word;
-typedef int32_t dword;
+typedef uint8_t byte;
+typedef uint16_t word;
+typedef uint32_t dword;
 typedef char flag_t;
 typedef byte bcd8_t;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic