Thread-topic: 'pascal' keyword not accepted in typedefs
User-agent: Microsoft-Entourage/11.2.0.050811
On Sat, 01 Oct 2005 13:37:20 -0700, Robert Slifka <email@hidden> wrote:
> I'm working hard at understanding a device vendor's API, and am surprised
> how much trouble I'm having just getting their project to build. Sheesh!
>
> The error I get is "parse error before EntryProc". If I remove the 'pascal'
> keyword, the program builds, but crashes as soon as any of these typedefs
> are used. I suspect they put the pascal there for a reason!
>
> #ifdef __cplusplus
> extern "C" { // Tell C++ to use C linking for these functions
> #endif
>
> // Callback Functions
> typedef pascal EntryProc (DeviceIDObject pObject, long iCmd);
>
> #ifdef __cplusplus
> }
> #endif
If you have a pre-compiled header you can add:
#define pascal
This will effectively remove all the pascal keywords. ;-)
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden