[PVFS2-CVS] commit by slang in pvfs2/include: pvfs2-types.h

CVS commit program cvs at parl.clemson.edu
Thu Nov 10 14:19:55 EST 2005


Update of /projects/cvsroot/pvfs2/include
In directory parlweb:/tmp/cvs-serv15153/include

Modified Files:
      Tag: pvfs2-1-3-1-branch
	pvfs2-types.h 
Log Message:
make changes to 1.3.1 as well


Index: pvfs2-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/include/pvfs2-types.h,v
diff -p -u -r1.115 -r1.115.2.1
--- pvfs2-types.h	10 Nov 2005 05:07:41 -0000	1.115
+++ pvfs2-types.h	10 Nov 2005 19:19:54 -0000	1.115.2.1
@@ -23,6 +23,8 @@
 #include <sys/time.h>
 #endif /* __KERNEL__ */
 
+#include "pvfs2-config.h"
+
 #ifndef INT32_MAX
 /* definition taken from stdint.h */
 #define INT32_MAX (2147483647)
@@ -666,14 +668,16 @@ enum PVFS_io_type
  * specifier and a parameter are mismatched, that machine will issue
  * a warning, while 64-bit machines will silently perform the cast.
  */
-#ifndef __LP64__
+#if SIZEOF_LONG_INT == 4 
 #  define llu(x) (x)
 #  define lld(x) (x)
 #  define SCANF_lld "%lld"
-#else
+#elif SIZEOF_LONG_INT == 8
 #  define llu(x) (unsigned long long)(x)
 #  define lld(x) (long long)(x)
 #  define SCANF_lld "%ld"
+#else
+#  error Unexpected sizeof(long int)
 #endif
 
 /*



More information about the PVFS2-CVS mailing list