-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e946b65
commit ce05f48
Showing
9 changed files
with
127 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
/*! | ||
* Copyright (c) 2018 by Contributors | ||
* \file build_config.h | ||
* \brief Default detection logic for fopen64 and other symbols. | ||
* May be overriden by CMake | ||
* \author KOLANICH | ||
*/ | ||
#ifndef DMLC_BUILD_CONFIG_H_ | ||
#define DMLC_BUILD_CONFIG_H_ | ||
|
||
/* default logic for fopen64 */ | ||
#if DMLC_USE_FOPEN64 && \ | ||
(!defined(__GNUC__) || (defined __ANDROID__) || (defined __FreeBSD__) \ | ||
|| (defined __APPLE__) || ((defined __MINGW32__) && !(defined __MINGW64__)) \ | ||
|| (defined __CYGWIN__) ) | ||
/* #undef DMLC_FOPEN_64_PRESENT */ | ||
|
||
#if !defined(DMLC_FOPEN_64_PRESENT) && DMLC_USE_FOPEN64 | ||
#define DMLC_EMIT_FOPEN64_REDEFINE_WARNING | ||
#define fopen64 std::fopen | ||
#endif | ||
|
||
/* default logic for stack trace */ | ||
#if (defined(__GNUC__) && !defined(__MINGW32__)\ | ||
&& !defined(__sun) && !defined(__SVR4)\ | ||
&& !(defined __MINGW64__) && !(defined __ANDROID__))\ | ||
&& !defined(__CYGWIN__) | ||
#define DMLC_CXXABI_H_PRESENT | ||
#define DMLC_EXECINFO_H_PRESENT | ||
|
||
#if (defined DMLC_CXXABI_H_PRESENT) && (defined DMLC_EXECINFO_H_PRESENT) | ||
#define DMLC_LOG_STACK_TRACE 1 | ||
#define DMLC_LOG_STACK_TRACE_SIZE 10 | ||
#define DMLC_EXECINFO_H <execinfo.h> | ||
#endif | ||
|
||
/* default logic for detecting existence of nanosleep() */ | ||
#if !(defined _WIN32) || (defined __CYGWIN__) | ||
#define DMLC_NANOSLEEP_PRESENT | ||
#endif | ||
#define DMLC_NANOSLEEP_PRESENT | ||
|
||
#define DMLC_CMAKE_LITTLE_ENDIAN 1 | ||
|
||
#endif // DMLC_BUILD_CONFIG_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
#include <queue> | ||
#include <dmlc/filesystem.h> | ||
|
||
#include "./filesys.h" | ||
|
||
namespace dmlc { | ||
namespace io { | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters