]> git.sesse.net Git - vlc/commitdiff
vlc_common.h: define INT64_MIN/INT64_MAX if necessary
authorEric Petit <titer@videolan.org>
Wed, 9 Mar 2005 00:43:46 +0000 (00:43 +0000)
committerEric Petit <titer@videolan.org>
Wed, 9 Mar 2005 00:43:46 +0000 (00:43 +0000)
include/vlc_common.h

index 77e3f3675c54fb847a478a8922b4877898a3fc12..e87ced02b5740adf18126ae00f6311cc2b7ce920 100644 (file)
 
 typedef uint8_t                 byte_t;
 
+/* Systems that don't have stdint.h may not define INT64_MIN and
+   INT64_MAX */
+#ifndef INT64_MIN
+#define INT64_MIN (-9223372036854775807LL-1)
+#endif
+#ifndef INT64_MAX
+#define INT64_MAX (9223372036854775807LL)
+#endif
+
 /* ptrdiff_t definition */
 #ifdef HAVE_STDDEF_H
 #   include <stddef.h>