summaryrefslogtreecommitdiff
path: root/builds/vms
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2016-01-22 23:35:49 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2016-01-22 23:35:49 -0500
commite4c69d226c8d88d12575626d7eceb68037e4ae76 (patch)
treeb64f662c03c87290524a98bf4a82e3ab30fe956b /builds/vms
parentfc4523bd00c837fcea319decc073caf1e7261c3b (diff)
downloadfreetype2-e4c69d226c8d88d12575626d7eceb68037e4ae76.tar.gz
Better access to 64-bit integers for C99 compilers.
* include/freetype/config/ftconfig.h [FT_LONG64]: Use __STDC_VERSION__ to define 64-bit integers. * builds/unix/ftconfig.in [FT_LONG64]: Ditto. * builds/vms/ftconfig.h [FT_LONG64]: Ditto.
Diffstat (limited to 'builds/vms')
-rw-r--r--builds/vms/ftconfig.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/builds/vms/ftconfig.h b/builds/vms/ftconfig.h
index b923e1132..fb75e4064 100644
--- a/builds/vms/ftconfig.h
+++ b/builds/vms/ftconfig.h
@@ -248,7 +248,13 @@ FT_BEGIN_HEADER
/* */
#elif !defined( __STDC__ ) || defined( FT_CONFIG_OPTION_FORCE_INT64 )
-#if defined( _MSC_VER ) && _MSC_VER >= 900 /* Visual C++ (and Intel C++) */
+#if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+
+#define FT_LONG64
+#define FT_INT64 long long int
+#define FT_UINT64 unsigned long long int
+
+#elif defined( _MSC_VER ) && _MSC_VER >= 900 /* Visual C++ (and Intel C++) */
/* this compiler provides the __int64 type */
#define FT_LONG64
@@ -282,7 +288,7 @@ FT_BEGIN_HEADER
#define FT_INT64 long long int
#define FT_UINT64 unsigned long long int
-#endif /* _MSC_VER */
+#endif /* __STDC_VERSION__ >= 199901L */
#endif /* FT_SIZEOF_LONG == (64 / FT_CHAR_BIT) */