mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user