1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*  camel-win32.h: Private info for win32.
3  *
4  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5  *
6  * This library is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13  * for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this library. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * Authors: Michael Zucchi <notzed@ximian.com>
19  */
20 
21 #ifndef CAMEL_WIN32_H
22 #define CAMEL_WIN32_H
23 
24 /* need a way to configure and save this data, if this header is to
25    be installed.  For now, dont install it */
26 
27 #include "evolution-data-server-config.h"
28 
29 #include <glib.h>
30 
31 #ifdef G_OS_WIN32
32 
33 G_BEGIN_DECLS
34 
35 #define fsync(fd) _commit(fd)
36 
37 const gchar *_camel_get_localedir (void) G_GNUC_CONST;
38 const gchar *_camel_get_libexecdir (void) G_GNUC_CONST;
39 const gchar *_camel_get_providerdir (void) G_GNUC_CONST;
40 
41 #undef LOCALEDIR
42 #define LOCALEDIR _camel_get_localedir ()
43 
44 #undef CAMEL_LIBEXECDIR
45 #define CAMEL_LIBEXECDIR _camel_get_libexecdir ()
46 
47 #undef CAMEL_PROVIDERDIR
48 #define CAMEL_PROVIDERDIR _camel_get_providerdir ()
49 
50 G_END_DECLS
51 
52 #endif /* G_OS_WIN32 */
53 
54 #endif /* CAMEL_WIN32_H */
55