Browse Source

engine, public: prepare to removal of XASH_MSVC macro

pull/2/head
Alibek Omarov 2 years ago
parent
commit
209a03a12a
  1. 12
      engine/common/lib_common.c
  2. 2
      engine/common/system.c
  3. 4
      public/xash3d_mathlib.h

12
engine/common/lib_common.c

@ -65,7 +65,7 @@ void *COM_FunctionFromName_SR( void *hInstance, const char *pName ) @@ -65,7 +65,7 @@ void *COM_FunctionFromName_SR( void *hInstance, const char *pName )
if( f ) return f;
}
#elif XASH_MSVC
#elif _MSC_VER
// TODO: COM_ConvertToLocalPlatform doesn't support MSVC yet
// also custom loader strips always MSVC mangling, so Win32
// platforms already use platform-neutral names
@ -126,6 +126,16 @@ dll_user_t *FS_FindLibrary( const char *dllname, qboolean directpath ) @@ -126,6 +126,16 @@ dll_user_t *FS_FindLibrary( const char *dllname, qboolean directpath )
=============================================================================
*/
enum
{
};
static void COM_GenerateCommonLibraryName( const char *name, const char *ext, int os, int cpu, char *out, size_t size )
{
}
static void COM_GenerateCommonLibraryName( const char *name, const char *ext, char *out, size_t size )
{
#if ( XASH_WIN32 || XASH_LINUX || XASH_APPLE ) && XASH_X86

2
engine/common/system.c

@ -62,7 +62,7 @@ Sys_DebugBreak @@ -62,7 +62,7 @@ Sys_DebugBreak
void Sys_DebugBreak( void )
{
#if XASH_LINUX || ( XASH_WIN32 && !XASH_64BIT )
#if XASH_MSVC
#if _MSC_VER
if( Sys_DebuggerPresent() )
_asm { int 3 }
#elif XASH_X86

4
public/xash3d_mathlib.h

@ -24,10 +24,6 @@ GNU General Public License for more details. @@ -24,10 +24,6 @@ GNU General Public License for more details.
#include "build.h"
#include "com_model.h"
#ifdef XASH_MSVC
#pragma warning(disable : 4201) // nonstandard extension used
#endif
// euler angle order
#define PITCH 0
#define YAW 1

Loading…
Cancel
Save