RE: [sv-cc] WIN32 and _WIN32 define

From: Scott, George <george_scott@mentor.com>
Date: Tue Aug 02 2011 - 23:41:01 PDT

For Mantis 3022, here is another link that describes the predefined ANSI
C and Microsoft C++ macros.

http://msdn.microsoft.com/en-us/library/b0084kay.aspx

To summarize the following are Microsoft C++ compiler macro definitions:

WIN32 is not defined by the compiler.
_MSC_VER is always defined.
_WIN32 is always defined for both 32 and 64 bit applications.
_WIN64 is only defined for 64 bit applications.

Also for reference, __declspec(dllimport) is a Microsoft specific
storage class attribute described by
 
http://msdn.microsoft.com/en-us/library/dabb5z75%28v=vs.80%29.aspx

------------------------------------------------------------------------
------------
George Scott
(503) 685-0857
------------------------------------------------------------------------
------------
-----Original Message-----
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of
Michael Rohleder
Sent: Wednesday, July 20, 2011 9:25 AM
To: SystemVerilog CC DWG
Subject: [sv-cc] WIN32 and _WIN32 define

Have a look at this...

http://support.microsoft.com/kb/122306

-- 
Michael Rohleder,  Dipl.-Inform.
Sr. Member of Technical Staff
New Product Development Center, Munich
Freescale Semiconductor, Inc.
www:   http://www.freescale.com
email: michael.rohleder@freescale.com
phone: +49-89-92103-259
fax:   +49-89-92103-101
This e-mail, and any associated attachments have been classified as:
[ ] Public
[ ] Freescale Semiconductor Internal Use Only
[x] Freescale Semiconductor Confidential Proprietary
     Freescale Halbleiter Deutschland GmbH
     Schatzbogen 7
     D-81829 Muenchen
     www.freescale.com
     USt.-ID-Nr./VAT-ID-No. DE813898243
     Steuernummer/Tax No. 143/138/30552
     Sitz der Gesellschaft/Registered Office: Muenchen
     Registergericht/Registered Court: Amtsgericht Muenchen HR B 151590
     Geschaeftsfuehrer/General Manager: Juergen Weyer, Randy Allen
Hyzak,
                                        Marie-Pascale Diez, John Holmes
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Aug 2 23:41:38 2011

This archive was generated by hypermail 2.1.8 : Tue Aug 02 2011 - 23:41:44 PDT