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.
This commit is contained in:
Tor Lillqvist
2004-03-08 00:55:21 +00:00
committed by Tor Lillqvist
parent 4c24377fc0
commit 9d55608cd6
6 changed files with 16 additions and 4 deletions

View File

@@ -8,6 +8,9 @@
* gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
* tests/testfilechooser.c: Correct localtime_r() emulation on
Win32. Remove a couple of unnecessary Win32-only includes.
Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
* tests/testentrycompletion.c: Test dynamic addition/removal.

View File

@@ -8,6 +8,9 @@
* gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
* tests/testfilechooser.c: Correct localtime_r() emulation on
Win32. Remove a couple of unnecessary Win32-only includes.
Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
* tests/testentrycompletion.c: Test dynamic addition/removal.

View File

@@ -8,6 +8,9 @@
* gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
* tests/testfilechooser.c: Correct localtime_r() emulation on
Win32. Remove a couple of unnecessary Win32-only includes.
Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
* tests/testentrycompletion.c: Test dynamic addition/removal.

View File

@@ -8,6 +8,9 @@
* gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
* tests/testfilechooser.c: Correct localtime_r() emulation on
Win32. Remove a couple of unnecessary Win32-only includes.
Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
* tests/testentrycompletion.c: Test dynamic addition/removal.

View File

@@ -8,6 +8,9 @@
* gtk/gtk.def: Small update. Thanks to J. Ali Harlow. Re-sorted.
* tests/testfilechooser.c: Correct localtime_r() emulation on
Win32. Remove a couple of unnecessary Win32-only includes.
Mon Mar 8 01:06:17 2004 Matthias Clasen <maclas@gmx.de>
* tests/testentrycompletion.c: Test dynamic addition/removal.

View File

@@ -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"