reactos/sdk/include/reactos/msvctarget.h

60 lines
1 KiB
C
Raw Normal View History

#pragma once
/* translate GCC target defines to MS equivalents. */
#if defined(__i386__)
#if !defined(_X86_)
#define _X86_ 1
#endif
#if !defined(_M_IX86)
#define _M_IX86 1
#endif
#elif defined(__x86_64__) || defined(__x86_64)
#if !defined(_AMD64_)
#define _AMD64_ 1
#endif
#if !defined(_M_AMD64)
#define _M_AMD64 1
#endif
#if !defined(_M_X64)
#define _M_X64 1
#endif
#elif defined(__arm__)
#if !defined(_ARM_)
#define _ARM_ 1
#endif
#if !defined(_M_ARM)
#define _M_ARM 1
#endif
#elif defined(__arm64__)
#if !defined(_ARM64_)
#define _ARM64_ 1
#endif
#if !defined(_M_ARM64)
#define _M_ARM64 1
#endif
#elif defined(__ia64__)
#if !defined(_IA64_)
#define _IA64_ 1
#endif
#if !defined(_M_IA64)
#define _M_IA64 1
#endif
#elif defined(__alpha__)
#if !defined(_ALPHA_)
#define _ALPHA_ 1
#endif
#if !defined(_M_ALPHA)
#define _M_ALPHA 1
#endif
#elif defined(__powerpc__)
#if !defined(_PPC_)
#define _PPC_ 1
#endif
#if !defined(_M_PPC)
#define _M_PPC 1
#endif
#else
#error Unknown architecture
modified base/applications/screensavers/3dtext/3dtext.rbuild modified lib/sdk/crt/crt.rbuild Split chkstk away from crt Link 3dtext to chkstk for Visual C++ builds (a gcc-built 3dtext would simply crash, I guess?) modified dll/cpl/access/display.c modified dll/cpl/access/general.c modified dll/cpl/access/keyboard.c modified dll/cpl/access/mouse.c Fixed signedness violations (thank you cl -Wall -W4) modified dll/win32/acledit/acledit.rbuild modified dll/win32/aclui/aclui.rbuild Removed empty stubs (thank you cl -Wall -W4) modified dll/win32/aclui/checklist.c Fixed signedness violations wcsnicmp is not a standard C routine BOOL is not a boolean Thank you cl -Wall -W4 modified dll/win32/aclui/sidcache.c Marked possible overflow (thank you cl -Wall -W4) modified dll/win32/msvcrt/msvcrt.def __iob_func and __p_iob are the same thing Export non-conforming swprintf as _swprintf, too (will fix for real later) Thank you cl -Wall -W4 modified include/ddk/winddk.h Zero-length array field in struct _SCATTER_GATHER_LIST Forward-declare structures out of argument lists Thank you cl -Wall -W4 modified include/reactos/msvctarget.h No need to emulate Visual C++ flags when compiling with Visual C++ modified lib/3rdparty/mingw/cpu_features.c modified lib/3rdparty/mingw/cpu_features.h Useless dependency from stdbool.h removed Now compiles with Visual C++ too modified lib/3rdparty/mingw/getopt.c Silence harmless warning modified lib/3rdparty/mingw/isascii.c modified lib/3rdparty/mingw/iscsym.c modified lib/3rdparty/mingw/iscsymf.c modified lib/3rdparty/mingw/toascii.c Undefine conflicting macro names before declaring the functions modified Makefile Visual C++ support is coming, did you bring your coat? svn path=/trunk/; revision=36954
2008-10-25 17:32:54 +00:00
#endif