Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
yui-knk committed May 29, 2023
1 parent ad35213 commit 604ca9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions st2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ extern "C" {

RUBY_SYMBOL_EXPORT_BEGIN

#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st2_data_t;
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
typedef unsigned LONG_LONG st2_data_t;
#else
# error ---->> st2.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
#endif
#define ST2_DATA_T_DEFINED

#ifndef CHAR_BIT
Expand Down

0 comments on commit 604ca9a

Please sign in to comment.