LoginSignup
6
7

More than 5 years have passed since last update.

_WIN32マクロ > Win32とWin64用application | ARMの記載もある

Last updated at Posted at 2015-04-09

Visual Studioで_WIN32マクロというのがある。

名前からすると32ビットアプリにはこのマクロを使えばいいように思える。

SOによると以下のことらしい。

_WIN32: Defined for applications for Win32 and Win64. Always defined.

_WIN64: Defined for applications for Win64.

64ビットアプリのソースに_WIN64がdefineされてなく_WIN32のみdefineされていても気にしなくていいようだ。

Microsoft Developer Network



(追記 2016/10/03)

MSDNを見直すと

_WIN32 Defined as 1 when the compilation target is 32-bit ARM, 64-bit ARM, x86, or x64. Otherwise, undefined.

ARMの記載も入っていた。

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7