Hmm, MSC_VER 1600 is VC++ 2010
1500 is VC++ 2008
I don't have any older versions installed at the moment. (The enclosed program I used to find
these has CRLF for newlines and probably no tabs.)
- Dennis
-----Original Message-----
From: libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org
[mailto:libreoffice-bounces+dennis.hamilton=acm.org@lists.freedesktop.org] On Behalf Of Regina
Henschel
Sent: Wednesday, September 07, 2011 07:58
To: Korrawit Pruegsanusak; libo@pechlaner.at; Thorsten Behrens; libreoffice@lists.freedesktop.org
Subject: Re: [Libreoffice] Updated [Patch] new BITxxx functions for ODF 1.2
Hi Eike,
Eike Rathke schrieb:
Hi Regina,
On Wednesday, 2011-09-07 15:04:47 +0200, Regina Henschel wrote:
I see a lot of sal_uInt64 in the code. Is that supported for
Windows? As far as I know at least the MSVC Express has only 4Byte
long.
Umm.. now that you mention.. sal/inc/sal/types.h has
#if (_MSC_VER>= 1000)
typedef __int64 sal_Int64;
typedef unsigned __int64 sal_uInt64;
so what evaluates _MSC_VER to in MSVCE?
How can I get that information?
In Env.Host.sh I get the lines:
SIZEOF_SHORT="2"
SIZEOF_INT="4"
SIZEOF_LONG="4"
SIZEOF_LONGLONG="8"
SIZEOF_POINTER="4"
Kind regards
Regina
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice
/* showdefs.c Program to report the compiler definitions that were set when
* it was compiled.
*
* 1.00 2005-09-13-16:09 This programs uses preprocessor tricks to see
* what the settings of possibly pre-defined macros are.
* 1.01 2005-09-13-22:43 correct the number of underscores in front of
* cplusplus and MSVC_RUNTIME_CHECKS
* 1.10 2005-09-14-07:48 Put in some conditional code around the pragma
* and add information for compiling as either C, C++, and C++
* without exception handling to show the differences in the
* settings that the compiler figures out from the name of the
* source program. Add more "documentation " inspired by my
* long-distance pair-programming buddy Bill Anderson's running this
* against GCC.
*
* $Header: /MyProjects/ShowDefs/showdefs.c 1 06-03-23 9:07 Orcmid $
*/
#include <stdio.h>
/* for printf() */
#include <string.h>
/* for strlen() */
#define TV(X) #X ""
/* Always produce a string, even when X is empty */
#define SHOW(X, SP) printf(SP #X " %s\n", \
( tv = TV(X), \
strlen(tv) == 0 \
? "is defined" \
: strcmp(tv, #X) == 0 \
? "undefined" \
: TV(is defined to X) ) )
#ifdef _MSC_VER
#pragma warning(disable: 4003)
/* Do not warn about TV(x) when not enough parameters (i.e., x empty) */
#endif
int main()
{/* Report predefined macros that may be set by default in this compiler.
*/
char *tv; /* pointer to the token value string */
printf("\nshowdef> 1.10 Check for documented pre-processor macros");
printf("\n that might be predefined in this compile.\n");
printf("\n Supported ANSI/ISO Macros:\n");
SHOW(__DATE__, " ");
SHOW(__FILE__, " ");
SHOW(__LINE__, " ");
SHOW(__STDC__, " ");
SHOW(__TIME__, " ");
printf("\n Supported (VC++?) reflection support:\n");
SHOW(__COUNTER__, " ");
SHOW(__cplusplus, " ");
SHOW(__FUNCTION__, " ");
SHOW(__FUNCDNAME__, " ");
SHOW(__FUNCSIG__, " ");
SHOW(__TIMESTAMP__, " ");
printf("\n VC++ MS-Specific Macros:\n");
SHOW(_ATL_VER, " ");
SHOW(_CHAR_UNSIGNED, " ");
SHOW(_CPPLIB_VER, " ");
SHOW(_CPPRTTI, " ");
SHOW(_CPPUNWIND, " ");
SHOW(_DEBUG, " ");
SHOW(_DLL, " ");
SHOW(_M_ALPHA, " ");
SHOW(_M_IA64, " ");
SHOW(_M_IX86, " ");
SHOW(_M_MPPC, " ");
SHOW(_M_MRX000, " ");
SHOW(_M_PPC, " ");
SHOW(_MANAGED, " ");
SHOW(_MFC_VER, " ");
SHOW(_MSC_EXTENSIONS, " ");
SHOW(_MSC_VER, " ");
SHOW(__MSVC_RUNTIME_CHECKS, " ");
SHOW(_MT, " ");
SHOW(_NATIVE_WCHAR_T_DEFINED, " ");
SHOW(_WCHAR_T_DEFINED, " ");
SHOW(_WIN32, " ");
SHOW(_WIN64, " ");
printf("\n And some favorites when compiling Windows code:\n");
SHOW(_INC_WINDOWS, " ");
SHOW(_MAC, " ");
SHOW(RC_INVOKED, " ");
SHOW(WIN32_LEAN_AND_MEAN, " ");
SHOW(_WIN32NLS, " ");
SHOW(_WINDEF_, " ");
SHOW(_WINDOWS_, " ");
SHOW(WINVER, " ");
SHOW(_X86_, " ");
/* This list can be extended to check known predefines of
other compilers too. This program is the basis for
being able to confirm the settings and options as part
of making sure that a build condition is reproducible.
*/
return 0;
} /* main() */
/* Compile this program with the command
*
* CL showdefs.c
*
* then do
*
* showdefs | more
*
* to see what the compiler has to say for itself.
*
* To see how it behaves as a C++ program, just
* copy or rename it to showdefs.cpp and see what
* happens when you do (using the VC++ Toolkit 2003),
*
* CL showdefs.cpp
*
* and CL /EHsc showdefs.cpp
*
* keeping your eye on __cplusplus and _CPPUNWIND.
* And, of course, try your own favorite compilers.
*
*/
/* *** END OF SHOWDEFS.C *** */
Context
- Re: [Libreoffice] Updated [Patch] new BITxxx functions for ODF 1.2 · Dennis E. Hamilton
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.