Skip to content

Commit

Permalink
fix crash on windows 64, force sigar_set_pointer use 64bit pointer hy…
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanyin committed Aug 28, 2024
1 parent 7cd4768 commit c8f25aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion go_bindings/Sigar/include/sigar.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ extern "C" {
defined(__LP64__) || \
defined(__64BIT__) || \
defined(__powerpc64__) || \
defined(__osf__)
defined(__osf__) || \
defined(_WIN64) || \
defined(__x86_64__) || \
defined(__amd64__) || \
defined(__ia64__) || \
defined(__aarch64__)
#define SIGAR_64BIT
#endif

Expand Down
7 changes: 6 additions & 1 deletion include/sigar.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ extern "C" {
defined(__LP64__) || \
defined(__64BIT__) || \
defined(__powerpc64__) || \
defined(__osf__)
defined(__osf__) || \
defined(_WIN64) || \
defined(__x86_64__) || \
defined(__amd64__) || \
defined(__ia64__) || \
defined(__aarch64__)
#define SIGAR_64BIT
#endif

Expand Down

0 comments on commit c8f25aa

Please sign in to comment.