From: Moritz Kroll Date: Fri, 8 Aug 2008 00:39:37 +0000 (+0000) Subject: cp_error045: winnt.h needs a pointer type to a stdcall function X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f630019f64e56d44244ad07350be761e3e24c8b1;p=cparser cp_error045: winnt.h needs a pointer type to a stdcall function [r21057] --- diff --git a/parsetest/cp_error045.c b/parsetest/cp_error045.c new file mode 100644 index 0000000..085bcb6 --- /dev/null +++ b/parsetest/cp_error045.c @@ -0,0 +1,12 @@ +// works with gcc 3.4.4 and icc 10.1 +typedef void(*__cdecl PIMAGE_TLS_CALLBACK)(); +typedef void(__cdecl* PIMAGE_TLS_CALLBACK2)(); + +// works with gcc 3.4.4 +typedef void(__attribute__((__stdcall__)) *PIMAGE_TLS_CALLBACK3)(); +typedef void(*__attribute__((__stdcall__)) PIMAGE_TLS_CALLBACK4)(); + +int main(void) +{ + return 0; +}