summaryrefslogtreecommitdiff
path: root/tests/testfilechooser.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2004-03-08 00:55:21 +0000
committerTor Lillqvist <tml@src.gnome.org>2004-03-08 00:55:21 +0000
commit9d55608cd62de7b94f50cc337f0d9bf8e387351d (patch)
tree526e6c2031bb65a236c78c31a68668e5fdda9805 /tests/testfilechooser.c
parent4c24377fc03ed6e34d4719b906004dec0baae182 (diff)
downloadgdk-pixbuf-9d55608cd62de7b94f50cc337f0d9bf8e387351d.tar.gz
Correct localtime_r() emulation on Win32. Remove a couple of unnecessary
2004-03-08 Tor Lillqvist <tml@iki.fi> * tests/testfilechooser.c: Correct localtime_r() emulation on Win32. Remove a couple of unnecessary Win32-only includes.
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r--tests/testfilechooser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 24cd1604b..6c76f70bc 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -11,14 +11,11 @@
#include <gtk/gtk.h>
#ifdef G_OS_WIN32
-# define WIN32_MEAN_AND_LEAN
-# include <windows.h> /* ExtractAssociatedIcon */
# include <io.h>
-# define localtime_r(t,b) localtime(t)
+# define localtime_r(t,b) *(b) = *localtime (t)
# ifndef S_ISREG
# define S_ISREG(m) ((m) & _S_IFREG)
# endif
-# include <gdk/win32/gdkwin32.h> /* gdk_win32_hdc_get */
#endif
#include "prop-editor.h"