From f630019f64e56d44244ad07350be761e3e24c8b1 Mon Sep 17 00:00:00 2001 From: Moritz Kroll Date: Fri, 8 Aug 2008 00:39:37 +0000 Subject: [PATCH] cp_error045: winnt.h needs a pointer type to a stdcall function [r21057] --- parsetest/cp_error045.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 parsetest/cp_error045.c 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; +} -- 2.20.1