1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
/* gweather-win32.h - Win32 portability
4
* Copyright 2008, Novell, Inc.
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public License
8
* as published by the Free Software Foundation; either version 2.1 of
9
* the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, see
18
* <http://www.gnu.org/licenses/>.
21
#ifndef __GWEATHER_WIN32_H__
22
#define __GWEATHER_WIN32_H__
26
#define localtime_r(t,tmp) (localtime (t) ? ((*tmp) = *localtime (t), tmp) : NULL)
29
#define GNOMELOCALEDIR _gweather_win32_get_locale_dir ()
32
#define ZONEINFO_DIR _gweather_win32_get_zoneinfo_dir ()
34
#undef GWEATHER_XML_LOCATION_DIR
35
#define GWEATHER_XML_LOCATION_DIR _gweather_win32_get_xml_location_dir ()
37
char *_gweather_win32_get_locale_dir (void);
38
char *_gweather_win32_get_zoneinfo_dir (void);
39
char *_gweather_win32_get_xml_location_dir (void);
43
#endif /* __GWEATHER_WIN32_H__ */