Skip to content

Commit

Permalink
Disable direct.h for non GCC compilers (#1220)
Browse files Browse the repository at this point in the history
* Disable direct.h inclusion Compiler.h for GCC

* Incremented patch version

* Update IPCatalog.h

---------

Co-authored-by: ravic-rs <[email protected]>
  • Loading branch information
ravic-rs and ravic-rs authored Aug 8, 2023
1 parent ffb73eb commit 55db568
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif(NOT CMAKE_BUILD_TYPE)

set(VERSION_MAJOR 0)
set(VERSION_MINOR 0)
set(VERSION_PATCH 222)
set(VERSION_PATCH 223)

option(
WITH_LIBCXX
Expand Down
2 changes: 2 additions & 0 deletions src/Compiler/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#ifndef __GNUC__
#include <direct.h>
#endif
#include <process.h>
#ifndef __SIZEOF_INT__
#define __SIZEOF_INT__ sizeof(int)
Expand Down
2 changes: 2 additions & 0 deletions src/IPGenerate/IPCatalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#ifndef __GNUC__
#include <direct.h>
#endif
#include <process.h>
#ifndef __SIZEOF_INT__
#define __SIZEOF_INT__ sizeof(int)
Expand Down

0 comments on commit 55db568

Please sign in to comment.