From 3a1bf08a785f73ea3e160930a12c6af7a76ca75a Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 11 Aug 2015 00:18:35 +0900 Subject: [PATCH] long int has at least 32 bits (as specified by ISO C) --- extlib/benz/include/picrin/compat.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extlib/benz/include/picrin/compat.h b/extlib/benz/include/picrin/compat.h index c5f1e51c..37af607b 100644 --- a/extlib/benz/include/picrin/compat.h +++ b/extlib/benz/include/picrin/compat.h @@ -29,11 +29,9 @@ extern "C" { # if INT_MAX > 2147483640L /* borrowed from luaconf.h */ typedef int int32_t; typedef unsigned int uint32_t; -# elif LONG_MAX > 2147483640L +# else typedef long int32_t; typedef unsigned long uint32_t; -# else -# error you must define int32_t and uint32_t # endif #endif