Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS. Make each...
[geeqie.git] / src / compat.h
1 /*
2  * Geeqie
3  * Copyright (C) 2008 - 2009 The Geeqie Team
4  *
5  * Authors: Vladimir Nadvornik / Laurent Monin
6  *
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13 #ifndef COMPAT_H
14 #define COMPAT_H
15
16 void radio_action_set_current_value(GtkRadioAction *action, gint current_value);
17 GList* hash_table_get_keys(GHashTable *hash_table);
18
19 #if !GTK_CHECK_VERSION(2,12,0)
20 #define gtk_widget_set_tooltip_text(widget, text) /* ignored */
21 #endif
22
23
24 /* Some systems (BSD,MacOsX,HP-UX,...) define MAP_ANON and not MAP_ANONYMOUS */
25 #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
26 #define MAP_ANONYMOUS   MAP_ANON
27 #elif defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
28 #define MAP_ANON        MAP_ANONYMOUS
29 #endif
30
31
32 #endif /* COMPAT_H */
33 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */