lib: Add GCC version macro to the header file.

This will be used to internally enable various GCC enhancements.
(cherry picked from commit 33adb59b60)
This commit is contained in:
Richard W.M. Jones
2011-05-17 14:41:34 +01:00
parent 7dd9c522bb
commit 2cee1bbfd0

View File

@@ -365,6 +365,11 @@ extern \"C\" {
#include <stdint.h>
#include <stdarg.h>
#ifdef __GNUC__
# define GUESTFS_GCC_VERSION \\
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
/* The handle. */
#ifndef GUESTFS_TYPEDEF_H
#define GUESTFS_TYPEDEF_H 1