summaryrefslogtreecommitdiff
path: root/src/fl_call_main.c
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2013-09-22 17:20:48 +0000
committerGreg Ercolano <erco@seriss.com>2013-09-22 17:20:48 +0000
commit25ff26df1207da4a7d5ceef4502f025d65533a07 (patch)
treea238051875a5b25eaee50e1edaca49cc4a9909b6 /src/fl_call_main.c
parent81dfeab19e6a4881b809910cfe443f6beb446a3d (diff)
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
Diffstat (limited to 'src/fl_call_main.c')
-rw-r--r--src/fl_call_main.c5
1 files changed, 1 insertions, 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__ */