From 25ff26df1207da4a7d5ceef4502f025d65533a07 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Sun, 22 Sep 2013 17:20:48 +0000 Subject: STR #2973: Removed old HP-UX dummy() code in favor of typedef; Skunk confirms compiles on two HP-UX variants as well as Sun. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_call_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/fl_call_main.c b/src/fl_call_main.c index 89e8762df..f32122a20 100644 --- a/src/fl_call_main.c +++ b/src/fl_call_main.c @@ -123,11 +123,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, return rc; } -#elif defined(__hpux) -/* This code to prevent "empty translation unit" or similar warnings... */ -static void dummy(void) {} #else -/* This is perhaps a better code for general cases than 'static void dummy() {}' to avoid "empty translation unit" (e.g. Sun) */ +/* STR# 2973: solves "empty translation unit" error (Sun, HP-UX..) */ typedef int dummy; #endif /* WIN32 && !FL_DLL && !__GNUC__ */ -- cgit v1.2.3