summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/config.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-12 05:54:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:20:08 -0500
commit9570e24df1397f31dbd7c8436928749da9fc378c (patch)
treef8e0503ee1b0a8a7ff1e31061fe6c11fe3d88eb4 /source4/lib/ejs/config.h
parent9f86e202865807ed898eff684d7cf3be7daae0fc (diff)
downloadsamba-9570e24df1397f31dbd7c8436928749da9fc378c.tar.gz
samba-9570e24df1397f31dbd7c8436928749da9fc378c.tar.bz2
samba-9570e24df1397f31dbd7c8436928749da9fc378c.zip
r8341: enable floating point support in ejs
(This used to be commit bdc6b67eb27cc3da6d5144bbb71096741f779aba)
Diffstat (limited to 'source4/lib/ejs/config.h')
-rw-r--r--source4/lib/ejs/config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/ejs/config.h b/source4/lib/ejs/config.h
index e6cd603907..320318a0b2 100644
--- a/source4/lib/ejs/config.h
+++ b/source4/lib/ejs/config.h
@@ -45,7 +45,7 @@
#define BLD_FEATURE_EJS 1
#define BLD_FEATURE_ESP_MODULE 1
#define BLD_FEATURE_EVAL_PERIOD 30
-#define BLD_FEATURE_FLOATING_POINT 0
+#define BLD_FEATURE_FLOATING_POINT 1
#define BLD_FEATURE_IF_MODIFIED 0
#define BLD_FEATURE_INT64 1
#define BLD_FEATURE_KEEP_ALIVE 0
@@ -135,3 +135,7 @@
#define BLD_BIN_DIR "${BLD_TOP}/bin"
#define BLD_INC_DIR "/usr/include/${BLD_PRODUCT}"
#define BLD_EXP_OBJ_DIR "${BLD_TOP}/obj"
+
+#ifndef MAX_FLOAT
+#define MAX_FLOAT 3.40282347e+38F
+#endif