mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-16 20:17:05 +03:00
Support for using <windows.h> even without NOMINMAX
This commit is contained in:
@@ -281,6 +281,8 @@ endif()
|
||||
|
||||
set(ASMJIT_SRC_LIST
|
||||
asmjit/asmjit.h
|
||||
asmjit/asmjit-scope-begin.h
|
||||
asmjit/asmjit-scope-end.h
|
||||
|
||||
asmjit/core.h
|
||||
asmjit/core/api-build_p.h
|
||||
|
||||
35
src/asmjit/asmjit-scope-begin.h
Normal file
35
src/asmjit/asmjit-scope-begin.h
Normal file
@@ -0,0 +1,35 @@
|
||||
// AsmJit - Machine code generation for C++
|
||||
//
|
||||
// * Official AsmJit Home Page: https://asmjit.com
|
||||
// * Official Github Repository: https://github.com/asmjit/asmjit
|
||||
//
|
||||
// Copyright (c) 2008-2020 The AsmJit Authors
|
||||
//
|
||||
// This software is provided 'as-is', without any express or implied
|
||||
// warranty. In no event will the authors be held liable for any damages
|
||||
// arising from the use of this software.
|
||||
//
|
||||
// Permission is granted to anyone to use this software for any purpose,
|
||||
// including commercial applications, and to alter it and redistribute it
|
||||
// freely, subject to the following restrictions:
|
||||
//
|
||||
// 1. The origin of this software must not be misrepresented; you must not
|
||||
// claim that you wrote the original software. If you use this software
|
||||
// in a product, an acknowledgment in the product documentation would be
|
||||
// appreciated but is not required.
|
||||
// 2. Altered source versions must be plainly marked as such, and must not be
|
||||
// misrepresented as being the original software.
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma push_macro("min")
|
||||
#pragma push_macro("max")
|
||||
|
||||
#ifdef min
|
||||
#undef min
|
||||
#endif
|
||||
|
||||
#ifdef max
|
||||
#undef max
|
||||
#endif
|
||||
#endif
|
||||
27
src/asmjit/asmjit-scope-end.h
Normal file
27
src/asmjit/asmjit-scope-end.h
Normal file
@@ -0,0 +1,27 @@
|
||||
// AsmJit - Machine code generation for C++
|
||||
//
|
||||
// * Official AsmJit Home Page: https://asmjit.com
|
||||
// * Official Github Repository: https://github.com/asmjit/asmjit
|
||||
//
|
||||
// Copyright (c) 2008-2020 The AsmJit Authors
|
||||
//
|
||||
// This software is provided 'as-is', without any express or implied
|
||||
// warranty. In no event will the authors be held liable for any damages
|
||||
// arising from the use of this software.
|
||||
//
|
||||
// Permission is granted to anyone to use this software for any purpose,
|
||||
// including commercial applications, and to alter it and redistribute it
|
||||
// freely, subject to the following restrictions:
|
||||
//
|
||||
// 1. The origin of this software must not be misrepresented; you must not
|
||||
// claim that you wrote the original software. If you use this software
|
||||
// in a product, an acknowledgment in the product documentation would be
|
||||
// appreciated but is not required.
|
||||
// 2. Altered source versions must be plainly marked as such, and must not be
|
||||
// misrepresented as being the original software.
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma pop_macro("min")
|
||||
#pragma pop_macro("max")
|
||||
#endif
|
||||
@@ -2005,40 +2005,41 @@ namespace asmjit {
|
||||
// [Core Headers]
|
||||
// ============================================================================
|
||||
|
||||
#include "./core/globals.h"
|
||||
|
||||
#include "./core/archtraits.h"
|
||||
#include "./core/assembler.h"
|
||||
#include "./core/builder.h"
|
||||
#include "./core/codeholder.h"
|
||||
#include "./core/compiler.h"
|
||||
#include "./core/constpool.h"
|
||||
#include "./core/cpuinfo.h"
|
||||
#include "./core/datatypes.h"
|
||||
#include "./core/emitter.h"
|
||||
#include "./core/environment.h"
|
||||
#include "./core/errorhandler.h"
|
||||
#include "./core/features.h"
|
||||
#include "./core/formatter.h"
|
||||
#include "./core/func.h"
|
||||
#include "./core/inst.h"
|
||||
#include "./core/jitallocator.h"
|
||||
#include "./core/jitruntime.h"
|
||||
#include "./core/logger.h"
|
||||
#include "./core/operand.h"
|
||||
#include "./core/osutils.h"
|
||||
#include "./core/string.h"
|
||||
#include "./core/support.h"
|
||||
#include "./core/target.h"
|
||||
#include "./core/type.h"
|
||||
#include "./core/virtmem.h"
|
||||
#include "./core/zone.h"
|
||||
#include "./core/zonehash.h"
|
||||
#include "./core/zonelist.h"
|
||||
#include "./core/zonetree.h"
|
||||
#include "./core/zonestack.h"
|
||||
#include "./core/zonestring.h"
|
||||
#include "./core/zonevector.h"
|
||||
#include "asmjit-scope-begin.h"
|
||||
#include "core/archtraits.h"
|
||||
#include "core/assembler.h"
|
||||
#include "core/builder.h"
|
||||
#include "core/codeholder.h"
|
||||
#include "core/compiler.h"
|
||||
#include "core/constpool.h"
|
||||
#include "core/cpuinfo.h"
|
||||
#include "core/datatypes.h"
|
||||
#include "core/emitter.h"
|
||||
#include "core/environment.h"
|
||||
#include "core/errorhandler.h"
|
||||
#include "core/features.h"
|
||||
#include "core/formatter.h"
|
||||
#include "core/func.h"
|
||||
#include "core/globals.h"
|
||||
#include "core/inst.h"
|
||||
#include "core/jitallocator.h"
|
||||
#include "core/jitruntime.h"
|
||||
#include "core/logger.h"
|
||||
#include "core/operand.h"
|
||||
#include "core/osutils.h"
|
||||
#include "core/string.h"
|
||||
#include "core/support.h"
|
||||
#include "core/target.h"
|
||||
#include "core/type.h"
|
||||
#include "core/virtmem.h"
|
||||
#include "core/zone.h"
|
||||
#include "core/zonehash.h"
|
||||
#include "core/zonelist.h"
|
||||
#include "core/zonetree.h"
|
||||
#include "core/zonestack.h"
|
||||
#include "core/zonestring.h"
|
||||
#include "core/zonevector.h"
|
||||
#include "asmjit-scope-end.h"
|
||||
|
||||
// ============================================================================
|
||||
// [Deprecated]
|
||||
|
||||
@@ -103,15 +103,17 @@
|
||||
//! - \ref x86::Predicate::VReduce - `REDUCE[PD|PS|SD|SS]` predicate (AVX512+).
|
||||
//! - \ref x86::TLog - namespace that provides `VPTERNLOG[D|Q]` predicate / operations.
|
||||
|
||||
#include "./core.h"
|
||||
#include "core.h"
|
||||
|
||||
#include "./x86/x86assembler.h"
|
||||
#include "./x86/x86builder.h"
|
||||
#include "./x86/x86compiler.h"
|
||||
#include "./x86/x86emitter.h"
|
||||
#include "./x86/x86features.h"
|
||||
#include "./x86/x86globals.h"
|
||||
#include "./x86/x86instdb.h"
|
||||
#include "./x86/x86operand.h"
|
||||
#include "asmjit-scope-begin.h"
|
||||
#include "x86/x86assembler.h"
|
||||
#include "x86/x86builder.h"
|
||||
#include "x86/x86compiler.h"
|
||||
#include "x86/x86emitter.h"
|
||||
#include "x86/x86features.h"
|
||||
#include "x86/x86globals.h"
|
||||
#include "x86/x86instdb.h"
|
||||
#include "x86/x86operand.h"
|
||||
#include "asmjit-scope-end.h"
|
||||
|
||||
#endif // ASMJIT_X86_H_INCLUDED
|
||||
|
||||
Reference in New Issue
Block a user