Displaying 4 results from an estimated 4 matches for "building_for_windows".
2014 Sep 30
2
[LLVMdev] size_t?
I'm getting compile errors because size_t is getting redefined. My
"forced include file" starts with:
#if BUILDING_FOR_WINDOWS
#define NOMINMAX
/* deal with the fact that windef.h also defines BOOL */
#define BOOL WINBOOL
#include <windows.h>
#include <intrin.h>
#undef BOOL
#endif
Looking at the preprocessor expansion of a typical .cpp file, I see that
crtdefs.h defines size_t like this:
typedef unisgned...
2014 Sep 30
2
[LLVMdev] size_t?
...t; going forwards.
>
> On Tue, Sep 30, 2014 at 1:55 PM, Eric Mader <emader at gmx.us
> <mailto:emader at gmx.us>> wrote:
>
> I'm getting compile errors because size_t is getting redefined. My
> "forced include file" starts with:
>
> #if BUILDING_FOR_WINDOWS
> #define NOMINMAX
>
> /* deal with the fact that windef.h also defines BOOL */
> #define BOOL WINBOOL
>
> #include <windows.h>
> #include <intrin.h>
>
> #undef BOOL
> #endif
>
> Looking at the preprocessor expansion of...
2014 Oct 01
2
[LLVMdev] size_t?
...hat will fix issues for other users going forwards.
>
> On Tue, Sep 30, 2014 at 1:55 PM, Eric Mader <emader at gmx.us> wrote:
>
>> I'm getting compile errors because size_t is getting redefined. My
>> "forced include file" starts with:
>>
>> #if BUILDING_FOR_WINDOWS
>> #define NOMINMAX
>>
>> /* deal with the fact that windef.h also defines BOOL */
>> #define BOOL WINBOOL
>>
>> #include <windows.h>
>> #include <intrin.h>
>>
>> #undef BOOL
>> #endif
>>
>> Looking at the preproces...
2014 Oct 01
2
[LLVMdev] size_t?
...oing
>> forwards.
>>
>> On Tue, Sep 30, 2014 at 1:55 PM, Eric Mader <emader at gmx.us> wrote:
>>
>>> I'm getting compile errors because size_t is getting redefined. My
>>> "forced include file" starts with:
>>>
>>> #if BUILDING_FOR_WINDOWS
>>> #define NOMINMAX
>>>
>>> /* deal with the fact that windef.h also defines BOOL */
>>> #define BOOL WINBOOL
>>>
>>> #include <windows.h>
>>> #include <intrin.h>
>>>
>>> #undef BOOL
>>> #endif
&g...