add ifdef for function attributes

This commit is contained in:
Daniel Micay 2012-05-30 04:41:51 -04:00
parent ddaf3cdfe6
commit ca24afcaee
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,10 @@
#include "config.h"
#ifndef __GNUC__
# define __attribute__(x)
#endif
static gboolean key_press_cb(GtkWidget *vte, GdkEventKey *event) {
const GdkModifierType modifiers = event->state & gtk_accelerator_get_default_mod_mask();
if (modifiers == (GDK_CONTROL_MASK|GDK_SHIFT_MASK)) {