相当于Visual C ++中的UNIX __WORDSIZE [英] Equivalent to UNIX __WORDSIZE in Visual C++
问题描述
Hello
我想知道在UNIX中是否存在与__WORDSIZE相当的#define或常量,但在Windows / Visual C ++中确定程序是否正在在32位或64位系统中编译。
I would like to know if there is a #define or constant equivalent to the __WORDSIZE in UNIX but in Windows / Visual C++ to determine if a program is being compiled in a 32 or 64 bits system.
谢谢!
推荐答案
在2/26/2019 1:48 PM,Kanito写道:
On 2/26/2019 1:48 PM, Kanito wrote:
我想知道是否有#define或等效于UNIX中的__WORDSIZE,但在Windows / Visual C ++中,以确定程序是在32位还是64位系统中编译。
I would like to know if there is a #define or constant equivalent to the __WORDSIZE in UNIX but in Windows / Visual C++ to determine if a program is being compiled in a 32 or 64 bits system.
_WIN64也许。另请参阅:
https://docs.microsoft.com/ en-us / cpp / preprocessor / predefined-macros
_WIN64 perhaps. See also: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros
这篇关于相当于Visual C ++中的UNIX __WORDSIZE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!