~ubuntu-branches/ubuntu/trusty/libgweather/trusty-updates

« back to all changes in this revision

Viewing changes to libgweather/gweather-win32.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-27 11:58:15 UTC
  • mfrom: (13.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130527115815-l51yffuy20gbv9q0
Tags: 3.8.0-1ubuntu1
* Sync with Debian (LP: #1184168). Remaining changes: 
  - debian/control.in, debian/rules:
    + Run autoreconf
  - debian/rules:
    + Generate POT files on build
  - debian/patches/01_gettext_not_xml.patch: 
    + using gettext rather than add translations to the xml databases
  - debian/patches/02_no_external_gettext.patch:
    + Can't have both IT_PROG_INTLTOOL and AM_GNU_GETTEXT

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
 
/* gweather-win32.h - Win32 portability
3
 
 *
4
 
 * Copyright 2008, Novell, Inc.
5
 
 *
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.
10
 
 *
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.
15
 
 *
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/>.
19
 
 */
20
 
 
21
 
#ifndef __GWEATHER_WIN32_H__
22
 
#define __GWEATHER_WIN32_H__
23
 
 
24
 
#ifdef _WIN32
25
 
 
26
 
#define localtime_r(t,tmp) (localtime (t) ? ((*tmp) = *localtime (t), tmp) : NULL)
27
 
 
28
 
#undef GNOMELOCALEDIR
29
 
#define GNOMELOCALEDIR _gweather_win32_get_locale_dir ()
30
 
 
31
 
#undef ZONEINFO_DIR
32
 
#define ZONEINFO_DIR _gweather_win32_get_zoneinfo_dir ()
33
 
 
34
 
#undef GWEATHER_XML_LOCATION_DIR
35
 
#define GWEATHER_XML_LOCATION_DIR _gweather_win32_get_xml_location_dir ()
36
 
 
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);
40
 
 
41
 
#endif
42
 
 
43
 
#endif /* __GWEATHER_WIN32_H__ */