Răsfoiți Sursa

64bit safe ais types

(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@366 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 ani în urmă
părinte
comite
fb68122abc
1 a modificat fișierele cu 11 adăugiri și 9 ștergeri
  1. 11 9
      include/ais_types.h

+ 11 - 9
include/ais_types.h

@@ -40,15 +40,17 @@ typedef enum {
 	SA_TRUE = 1
 } SaBoolT;
 
-typedef char SaInt8T;
-typedef short SaInt16T;
-typedef long SaInt32T;
-typedef long long SaInt64T;
-
-typedef unsigned char SaUint8T;
-typedef unsigned short SaUint16T;
-typedef unsigned long SaUint32T;
-typedef unsigned long long SaUint64T;
+#include <stdint.h>
+
+typedef int8_t SaInt8T;
+typedef int16_t SaInt16T;
+typedef int32_t SaInt32T;
+typedef int64_t SaInt64T;
+
+typedef uint8_t SaUint8T;
+typedef uint16_t SaUint16T;
+typedef uint32_t SaUint32T;
+typedef uint64_t SaUint64T;
 
 typedef SaInt64T SaTimeT;