nvidia-texture-tools/src/nvcore/DefsVcWin32.h

79 lines
2.3 KiB
C
Raw Normal View History

2007-04-17 08:49:19 +00:00
#ifndef NV_CORE_H
#error "Do not include this file directly."
#endif
// Function linkage
2007-12-03 08:38:56 +00:00
#define DLL_IMPORT __declspec(dllimport)
#define DLL_EXPORT __declspec(dllexport)
2007-04-17 08:49:19 +00:00
#define DLL_EXPORT_CLASS DLL_EXPORT
// Function calling modes
2007-12-03 08:38:56 +00:00
#define NV_CDECL __cdecl
#define NV_STDCALL __stdcall
#define NV_FASTCALL __fastcall
#define NV_FORCEINLINE __forceinline
#define NV_DEPRECATED
2007-04-17 08:49:19 +00:00
#define NV_PURE
#define NV_CONST
// Set standard function names.
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#define vsscanf _vsscanf
#define chdir _chdir
#define getcwd _getcwd
#define va_copy(a, b) a = b
#if !defined restrict
#define restrict
#endif
2007-12-03 08:38:56 +00:00
// Ignore gcc attributes.
2007-04-17 08:49:19 +00:00
#define __attribute__(X)
#if !defined __FUNC__
2007-12-03 08:38:56 +00:00
#define __FUNC__ __FUNCTION__
2007-04-17 08:49:19 +00:00
#endif
// Type definitions
2007-12-03 08:38:56 +00:00
typedef unsigned char uint8;
typedef signed char int8;
2007-04-17 08:49:19 +00:00
2007-12-03 08:38:56 +00:00
typedef unsigned short uint16;
typedef signed short int16;
2007-04-17 08:49:19 +00:00
2007-12-03 08:38:56 +00:00
typedef unsigned int uint32;
typedef signed int int32;
2007-04-17 08:49:19 +00:00
2007-12-03 08:38:56 +00:00
typedef unsigned __int64 uint64;
typedef signed __int64 int64;
2007-04-17 08:49:19 +00:00
// Aliases
2007-12-03 08:38:56 +00:00
typedef uint32 uint;
2007-04-17 08:49:19 +00:00
// Unwanted VC++ warnings to disable.
2007-12-03 08:38:56 +00:00
/*
2007-04-17 08:49:19 +00:00
#pragma warning(disable : 4244) // conversion to float, possible loss of data
#pragma warning(disable : 4245) // conversion from 'enum ' to 'unsigned long', signed/unsigned mismatch
#pragma warning(disable : 4100) // unreferenced formal parameter
#pragma warning(disable : 4514) // unreferenced inline function has been removed
#pragma warning(disable : 4710) // inline function not expanded
#pragma warning(disable : 4127) // Conditional expression is constant
#pragma warning(disable : 4305) // truncation from 'const double' to 'float'
#pragma warning(disable : 4505) // unreferenced local function has been removed
#pragma warning(disable : 4702) // unreachable code in inline expanded function
#pragma warning(disable : 4711) // function selected for automatic inlining
#pragma warning(disable : 4725) // Pentium fdiv bug
2008-04-17 08:59:21 +00:00
#pragma warning(disable : 4345) // behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
2007-04-17 08:49:19 +00:00
#pragma warning(disable : 4786) // Identifier was truncated and cannot be debugged.
#pragma warning(disable : 4675) // resolved overload was found by argument-dependent lookup
2007-12-03 08:38:56 +00:00
*/