Skip to content

Commit

Permalink
Add Necessary Checks and Definitions to Build on QNX (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnson9009 authored Aug 8, 2023
1 parent 8ba3437 commit a355fbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/dmlc/build_config_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
&& !defined(__sun) && !defined(__SVR4)\
&& !(defined __MINGW64__) && !(defined __ANDROID__))\
&& !defined(__CYGWIN__) && !defined(__EMSCRIPTEN__)\
&& !defined(__RISCV__) && !defined(__hexagon__)
&& !defined(__RISCV__) && !defined(__hexagon__)\
&& !defined(__QNX__)
#if !defined(DMLC_LOG_STACK_TRACE)
#define DMLC_LOG_STACK_TRACE 1
#define DMLC_EXECINFO_H <execinfo.h>
Expand Down
3 changes: 3 additions & 0 deletions include/dmlc/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#elif defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/endian.h>
#define DMLC_LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN)
#elif defined(__QNX__)
#include <sys/param.h>
#define DMLC_LITTLE_ENDIAN (BYTE_ORDER == LITTLE_ENDIAN)
#elif defined(__EMSCRIPTEN__) || defined(__hexagon__)
#define DMLC_LITTLE_ENDIAN 1
#elif defined(__sun) || defined(sun)
Expand Down

0 comments on commit a355fbf

Please sign in to comment.