forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce and clean up compile-time dependencies. Fix lzo include path f…
…or xrGame Release build.
- Loading branch information
1 parent
884b4db
commit 6e27c40
Showing
51 changed files
with
3,422 additions
and
1,266 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifdef _MSC_VER | ||
#pragma once | ||
#endif | ||
#ifndef INLINING_MACROS_H | ||
#define INLINING_MACROS_H | ||
|
||
#if defined(__GNUC__) | ||
#define NO_INLINE __attribute__((noinline)) | ||
#define FORCE_INLINE __attribute__((always_inline)) inline | ||
#define ALIGN(a) __attribute__((aligned(a))) | ||
#define DEBUG_BREAK asm("int $3") | ||
#elif defined(_MSC_VER) | ||
#define NO_INLINE __declspec(noinline) | ||
#define FORCE_INLINE __forceinline | ||
#define ALIGN(a) __declspec(align(a)) | ||
#define DEBUG_BREAK __debugbreak() | ||
#define __thread __declspec(thread) | ||
#endif | ||
|
||
// XXX: remove | ||
#define _inline inline | ||
#define __inline inline | ||
|
||
// XXX: remove IC/ICF/ICN | ||
#define IC inline | ||
#define ICF FORCE_INLINE | ||
#define ICN NO_INLINE | ||
|
||
#endif |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifdef _MSC_VER | ||
#pragma once | ||
#endif | ||
#ifndef XR_IMPEXP_MACROS_H | ||
#define XR_IMPEXP_MACROS_H | ||
|
||
#if defined(__GNUC__) | ||
#define XR_EXPORT __attribute__ ((visibility("default"))) | ||
#define XR_IMPORT __attribute__ ((visibility("default"))) | ||
#elif defined(_MSC_VER) | ||
#define XR_EXPORT __declspec(dllexport) | ||
#define XR_IMPORT __declspec(dllimport) | ||
#endif | ||
|
||
#endif |
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
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
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
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
Oops, something went wrong.