=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/include/ca-27.h,v retrieving revision 1.5 retrieving revision 1.9 diff -u -p -r1.5 -r1.9 --- OpenXM_contrib2/asir2000/include/ca-27.h 2009/03/16 16:43:03 1.5 +++ OpenXM_contrib2/asir2000/include/ca-27.h 2018/03/29 01:32:53 1.9 @@ -45,20 +45,18 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/include/ca-27.h,v 1.4 2003/02/14 22:29:13 ohara Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/include/ca-27.h,v 1.8 2015/08/14 13:51:55 fujimoto Exp $ */ -#if SIZEOF_LONG == 4 -#if defined(VISUAL) -typedef _int64 L; -typedef unsigned _int64 UL; -#else +#if SIZEOF_LONG == 8 +typedef long L; +typedef unsigned long UL; +#elif defined(HAVE_UNSIGNED_LONG_LONG) typedef long long L; typedef unsigned long long UL; +#elif defined(_MSC_VER) +typedef _int64 L; +typedef unsigned _int64 UL; #endif -#else -typedef long L; -typedef unsigned long UL; -#endif /* data structures */ #define O_N 1 @@ -66,13 +64,13 @@ typedef unsigned long UL; #define N_Q 0 struct oN { - int p; - int b[1]; + int p; + int b[1]; }; typedef struct oN *N; -#if defined(VISUAL) +#if defined(VISUAL) || defined(__MINGW32__) #include #define index(s,c) strchr(s,c) #define bzero(s,len) memset(s,0,len)