diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-10 01:30:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-10 01:30:14 +0000 |
commit | 40ca06cb4bd5f1a2f411648b6a2b8fc9b80916a5 (patch) | |
tree | 24d84ca4c4eb86600478fa79504193c9f6503b92 /st.h | |
parent | 9dde6bd829c264f04c78a2ede1cbaf311fe75ab9 (diff) |
* st.h (st_data_t): use pointer sized integer for st_data_t.
[ruby-dev:28988]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |