cp_error045: winnt.h needs a pointer type to a stdcall function
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Fri, 8 Aug 2008 00:39:37 +0000 (00:39 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Fri, 8 Aug 2008 00:39:37 +0000 (00:39 +0000)
[r21057]

parsetest/cp_error045.c [new file with mode: 0644]

diff --git a/parsetest/cp_error045.c b/parsetest/cp_error045.c
new file mode 100644 (file)
index 0000000..085bcb6
--- /dev/null
@@ -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;
+}