diff options
author | Patrik Nyblom <[email protected]> | 2010-08-10 15:17:42 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2010-08-10 15:17:42 +0200 |
commit | 0045a2ef8ea300eb2dee2b3aaadc6b5f08f5d4c4 (patch) | |
tree | 3c6ce4c4e780a9d2823d27521dad9f18339c4cef /erts/emulator | |
parent | ad632e7f3ce05a44e51965202205a468bc357b3e (diff) | |
download | otp-0045a2ef8ea300eb2dee2b3aaadc6b5f08f5d4c4.tar.gz otp-0045a2ef8ea300eb2dee2b3aaadc6b5f08f5d4c4.tar.bz2 otp-0045a2ef8ea300eb2dee2b3aaadc6b5f08f5d4c4.zip |
Teach Windows about the int64 functions
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/erl_nif_api_funcs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_nif_api_funcs.h b/erts/emulator/beam/erl_nif_api_funcs.h index d538200860..eca506593d 100644 --- a/erts/emulator/beam/erl_nif_api_funcs.h +++ b/erts/emulator/beam/erl_nif_api_funcs.h @@ -236,6 +236,13 @@ ERL_NIF_API_FUNC_DECL(ERL_NIF_TERM,enif_make_uint64,(ErlNifEnv*, ErlNifUInt64)); # define enif_get_local_pid ERL_NIF_API_FUNC_MACRO(enif_get_local_pid) # define enif_keep_resource ERL_NIF_API_FUNC_MACRO(enif_keep_resource) # define enif_make_resource_binary ERL_NIF_API_FUNC_MACRO(enif_make_resource_binary) +#if SIZEOF_LONG != 8 +# define enif_get_int64 ERL_NIF_API_FUNC_MACRO(enif_get_int64) +# define enif_get_uint64 ERL_NIF_API_FUNC_MACRO(enif_get_uint64) +# define enif_make_int64 ERL_NIF_API_FUNC_MACRO(enif_make_int64) +# define enif_make_uint64 ERL_NIF_API_FUNC_MACRO(enif_make_uint64) +#endif + #endif #ifndef enif_make_list1 |