You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/09/11 09:57:28 UTC

svn commit: r813748 - /incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h

Author: spoole
Date: Fri Sep 11 09:57:28 2009
New Revision: 813748

URL: http://svn.apache.org/viewvc?rev=813748&view=rev
Log:
fixed syntax error in cjvmti header introduced when adding macros for AIX

Modified:
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h

Modified: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h?rev=813748&r1=813747&r2=813748&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h (original)
+++ incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/src/main/native/include/cjvmti.h Fri Sep 11 09:57:28 2009
@@ -36,13 +36,19 @@
 #include <time.h>
 #include <malloc.h>
 
-#if defined( __linux__) || defined(__aix__)
+#ifdef  __linux__
 #define FPOS_T off_t
 #define FSEEK(x,y,z) fseeko((x),(y),(z))
 #define FTELL(x) ftello((x))
 #define FGETPOS(x,y) (*(y))=ftello((x))
-#define FSETPOS(x,y) fseeko((x), (*(y)), SEEK_SET)
-#elif WIN32
+#define FSETPOS(x,y) fseeko((x), (*(y)), SEEK_SET)
+#elif   __aix__
+#define FPOS_T off_t
+#define FSEEK(x,y,z) fseeko((x),(y),(z))
+#define FTELL(x) ftello((x))
+#define FGETPOS(x,y) (*(y))=ftello((x))
+#define FSETPOS(x,y) fseeko((x), (*(y)), SEEK_SET)
+#elif   WIN32
 #define FPOS_T __int64
 #define FSEEK(x,y,z) _fseeki64((x),(y),(z))
 #define FTELL(x) _ftelli64((x))