lua: use float instead of double, reduces the gc data structure size by 4 byte =...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Oct 2009 03:01:12 +0000 (03:01 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 26 Oct 2009 03:01:12 +0000 (03:01 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18159 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/lua/Makefile
package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch

index b418b30..4589cfe 100644 (file)
@@ -83,7 +83,7 @@ endef
 define Build/Configure
 endef
 
-TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC)
+TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99
 
 ifneq ($(CONFIG_USE_EGLIBC),)
   ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),)
index 32c39f3..f8d8fc7 100644 (file)
@@ -1887,7 +1887,7 @@ Index: lua-5.1.4/src/lnum_config.h
 +** Default number modes
 +*/
 +#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE)
-+# define LNUM_DOUBLE
++# define LNUM_FLOAT
 +#endif
 +#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64)
 +# define LNUM_INT32
This page took 0.028343 seconds and 4 git commands to generate.