summaryrefslogtreecommitdiff
path: root/st.h
diff options
context:
space:
mode:
Diffstat (limited to 'st.h')
-rw-r--r--st.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/st.h b/st.h
index 5901bd4f80..fb56f5ffad 100644
--- a/st.h
+++ b/st.h
@@ -6,7 +6,14 @@
#define ST_INCLUDED
+#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t;
+#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
+typedef unsigned LONG_LONG st_data_t;
+#else
+# error ---->> st.c requires sizeof(void*) == sizeof(long) to be compiled. <<---
+-
+#endif
#define ST_DATA_T_DEFINED
typedef struct st_table st_table;