Skip to content

Commit

Permalink
Cxx: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
agdavydov81 committed Oct 16, 2023
1 parent a15cb02 commit 4001b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion native/NativeImpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static const uint64_t DECIMAL_NATIVE_UNDERLYING_NULL = 0xFFFFFFFFFFFFFF80ULL; //
BID_UINT64 dfp64_try_parse(const char* str, _IDEC_flags* exception) {
if (!strcmpIgnoreCase(str, "null"))
return DECIMAL_NATIVE_UNDERLYING_NULL;
auto ret = bid64_from_string((char*)str);
BID_UINT64 ret = bid64_from_string((char*)str);
if (exception)
*exception = _IDEC_glbflags;
return ret;
Expand Down
4 changes: 2 additions & 2 deletions native/NativeImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#if defined(_WIN32)
#define JNI_API(x) __declspec(dllexport) x __stdcall
#else
#define JNI_API(x) x __attribute__ ((externally_visible,visibility("default")))
#define JNI_API(x) x __attribute__ ((visibility("default")))
#endif

#if defined(_WIN32)
#define DDFP_API(x) __declspec(dllexport) x __cdecl
#else
#define DDFP_API(x) x __attribute__ ((externally_visible,visibility("default")))
#define DDFP_API(x) x __attribute__ ((visibility("default")))
#endif

/*
Expand Down

0 comments on commit 4001b27

Please sign in to comment.