Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 383773 - __int64 is not detected as valid type with 'Microsoft Visual C++' toolchain
Summary: __int64 is not detected as valid type with 'Microsoft Visual C++' toolchain
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.1.2   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
: 69630 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-28 07:27 EDT by Missing name CLA
Modified: 2013-05-08 13:18 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2012-06-28 07:27:34 EDT
Therefore every function prototype containing any type derived from __int64 doesn't match, e.g. on Win64 time_t -> __time64_t -> __int64

Regards, Gert
Comment 1 Marc-André Laperle CLA 2012-11-09 01:44:22 EST
I define macros like this (in Project properties, Paths and symbols)

__int64 : long long
__int32 : int
__int16 : short
__int8 : char

It does seems to work pretty well in my code base. Perhaps we should define them by default to these values? What do you think?
Comment 2 Marc-André Laperle CLA 2012-11-17 13:52:41 EST
Let's do this until we have a VC specific parser. I'll also define __forceinline as __inline, it has given me trouble as well.
Comment 4 CDT Genie CLA 2013-02-27 11:56:03 EST
*** cdt git genie on behalf of Marc-Andre Laperle ***

    Bug 383773 - __int64 is not detected as valid type with MSVC toolchain

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=1b2b5e5cd4045da1861ecb9088fc02e468e188af
Comment 5 CDT Genie CLA 2013-02-27 11:56:05 EST
*** cdt git genie on behalf of Marc-Andre Laperle ***

    Bug 383773 - __int64 is not detected as valid type with MSVC toolchain

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=92376ee191ab48f1fc2030704977d3a62c13ccf8
Comment 6 Sergey Prigogin CLA 2013-05-08 13:18:17 EDT
*** Bug 69630 has been marked as a duplicate of this bug. ***