/* support for both versions */
#ifdef GKRELLM2
        /* use the new GTK2 API */
#       include <gkrellm2/gkrellm.h>
#       define VERSION_MAJOR       GKRELLM_VERSION_MAJOR
#       define VERSION_MINOR       GKRELLM_VERSION_MINOR
#       define VERSION_REV         GKRELLM_VERSION_REV
#       define DEFAULT_STYLE       DEFAULT_STYLE_ID
#       define LABEL_MAX           GKRELLM_LABEL_MAX
#       define init_plugin         gkrellm_init_plugin
#       define Monitor             GkrellmMonitor
#       define TextStyle           GkrellmTextstyle
#       define Decal               GkrellmDecal
#       define Label               GkrellmLabel
#       define Margin              GkrellmMargin
#       define Style               GkrellmStyle
#       define Krell               GkrellmKrell
#       define Panel               GkrellmPanel
#       define ChartConfig         GkrellmChartconfig
#       define ChartLayer          GkrellmChartlayer
#       define Chart               GkrellmChart
#       define ChartData           GkrellmChartdata
#       define DecalButton         GkrellmDecalbutton
#       define Launcher            GkrellmLauncher
#       define AlertDecal          GkrellmAlertdecal
#       define Alert               GkrellmAlert
#       define gkrellm_system(c)   g_spawn_command_line_async(c, NULL)
#       define gkrellm_configure_panel gkrellm_panel_configure
#       define gkrellm_destroy_panel   gkrellm_panel_destroy
#       define gkrellm_draw_layers     gkrellm_draw_panel_layers
#       define gkrellm_draw_layers_force gkrellm_draw_panel_layers_force
#       define gkrellm_render_to_pixmap    gkrellm_scale_piximage_to_pixmap
#       define gdk_imlib_set_image_border  gkrellm_set_piximage_border
#       define gdk_imlib_create_image_from_xpm_data gkrellm_piximage_new_from_xpm_data
#       define gdk_imlib_load_image    gkrellm_piximage_new_from_file
#       define gdk_imlib_kill_image    gkrellm_destroy_piximage
#       define gdk_imlib_destroy_image gkrellm_destroy_piximage
#       define gdk_imlib_paste_image   gkrellm_paste_piximage
#       define GdkImlibBorder          GkrellmBorder
#       define GdkImlibImage           GkrellmPiximage
#       define gkrellm_chart_bg_image_override gkrellm_chart_bg_piximage_override
#       define gkrellm_panel_bg_image_override gkrellm_panel_bg_piximage_override
#       define gkrellm_load_image              gkrellm_load_piximage
#       define gkrellm_set_image_border        gkrellm_set_gkrellmrc_piximage_border
#       define gkrellm_get_gkrellmrc_image_border gkrellm_get_gkrellmrc_piximage_border
#       define gkrellm_bg_chart_image          gkrellm_bg_chart_piximage
#       define gkrellm_bg_grid_image           gkrellm_bg_grid_piximage
#       define gkrellm_bg_panel_image          gkrellm_bg_panel_piximage
#       define gkrellm_bg_meter_image          gkrellm_bg_meter_piximage
#       define gkrellm_krell_panel_image       gkrellm_krell_panel_piximage
#       define gkrellm_krell_meter_image       gkrellm_krell_meter_piximage
#       define gkrellm_krell_slider_image      gkrellm_krell_slider_piximage
#       define gkrellm_krell_mini_image        gkrellm_krell_mini_piximage
#       define gkrellm_get_decal_alarm_image   gkrellm_get_decal_alarm_piximage
#       define gkrellm_get_decal_warn_image    gkrellm_get_decal_warn_piximage
#       define gkrellm_create_tab          gkrellm_gtk_notebook_page
#       define gkrellm_create_framed_tab   gkrellm_gtk_framed_notebook_page
#       define gkrellm_launcher_table_new  gkrellm_gtk_launcher_table_new
#       define gkrellm_entry_get_text      gkrellm_gtk_entry_get_text
#       define gkrellm_spin_button         gkrellm_gtk_spin_button
#       define gkrellm_check_button        gkrellm_gtk_check_button
#       define gkrellm_check_button_connected gkrellm_gtk_check_button_connected
#       define gkrellm_button_connected    gkrellm_gtk_button_connected
#       define gkrellm_scrolled_vbox       gkrellm_gtk_scrolled_vbox
#       define gkrellm_framed_vbox         gkrellm_gtk_framed_vbox
#       define gkrellm_framed_vbox_end     gkrellm_gtk_framed_vbox_end
#       define gkrellm_scrolled_text       gkrellm_gtk_scrolled_text_view
#       define gkrellm_add_info_text       gkrellm_gtk_text_view_append_strings
#       define gkrellm_add_info_text_string gkrellm_gtk_text_view_append
#       define gkrellm_config_launcher     gkrellm_gtk_config_launcher
#       define gkrellm_remove_and_destroy_decal(p,d) gkrellm_destroy_decal(d)
#       define gkrellm_remove_and_destroy_krell(p,d) gkrellm_destroy_krell(d)
#       define gkrellm_message_window(title, message, widget) gkrellm_message_dialog(title, message)
#       define gkrellm_config_message_window(title, message, widget) gkrellm_config_message_dialog(title, message)

#else
        /* use the original API */
#       include <gkrellm/gkrellm.h>
#endif  /* end ifdef GKRELLM2 */

