aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK.Kosako <kosako@sofnec.co.jp>2020-01-14 10:29:51 +0900
committerK.Kosako <kosako@sofnec.co.jp>2020-01-14 10:29:51 +0900
commit1cbe673aa1f53db1c1b7780e72e82b36aa26c72b (patch)
tree2797ef17909842686c3cf4015dc20a5777829429
parent3a63ebabbfdc0f0371a4bdb856bed017d3dba108 (diff)
downloadoniguruma-1cbe673aa1f53db1c1b7780e72e82b36aa26c72b.zip
oniguruma-1cbe673aa1f53db1c1b7780e72e82b36aa26c72b.tar.gz
oniguruma-1cbe673aa1f53db1c1b7780e72e82b36aa26c72b.tar.bz2
refactoring for removing ONIGURUMA_SYS_UEFI
-rw-r--r--src/st.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/st.h b/src/st.h
index 666d9f7..e7f58dd 100644
--- a/src/st.h
+++ b/src/st.h
@@ -3,20 +3,14 @@
/* @(#) st.h 5.1 89/12/14 */
#ifndef ST_INCLUDED
-
#define ST_INCLUDED
-#ifndef ONIGURUMA_SYS_UEFI
-
-#ifdef _WIN32
-# include <windows.h>
-typedef ULONG_PTR st_data_t;
-#else
+#if SIZEOF_VOIDP == SIZEOF_LONG
typedef unsigned long st_data_t;
+#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
+typedef unsigned LONG_LONG st_data_t;
#endif
-#endif /* ONIGURUMA_SYS_UEFI */
-
#define ST_DATA_T_DEFINED
typedef struct st_table st_table;