Browse Source

lib/glibcompat.h: add missing include of stdarg.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 10 years ago
parent
commit
77a45cdafb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/glibcompat.h

+ 4 - 0
lib/glibcompat.h

@@ -1,6 +1,10 @@
 #ifndef MC_GLIBCOMPAT_H
 #define MC_GLIBCOMPAT_H
 
+#if ! GLIB_CHECK_VERSION (2, 22, 0)
+#include <stdarg.h>             /* for g_error_new_valist() */
+#endif /* ! GLIB_CHECK_VERSION (2, 22, 0) */
+
 /*** typedefs(not structures) and defined constants **********************************************/
 
 /*** enums ***************************************************************************************/