Function Macro

GLibGNUC_CHECK_VERSION

Declaration

#define G_GNUC_CHECK_VERSION (
  major,
  minor
)

Description

Expands to a check for a compiler with GNUC defined and a version greater than or equal to the major and minor numbers provided. For example, the following would only match on compilers such as GCC 4.8 or newer.

#if G_GNUC_CHECK_VERSION(4, 8)
#endif
Available since:2.42
This function is not directly available to language bindings

Parameters

major -
 

Major version to check against.

minor -
 

Minor version to check against.