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 17f3875 commit c6ff0b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions st2.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@ extern "C" {
#include <stddef.h>
#include <stdint.h>
#include "ruby/config.h"
#include "ruby/backward/2/long_long.h"

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;
typedef unsigned LONG_LONG st2_data_t;
#else
# error ---->> st2.c requires sizeof(void*) == sizeof(long) or sizeof(long long) to be compiled. <<----
# error ---->> st2.c requires sizeof(void*) == sizeof(long) or sizeof(LONG_LONG) to be compiled. <<----
#endif
#define ST2_DATA_T_DEFINED

Expand Down

0 comments on commit c6ff0b0

Please sign in to comment.