1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 12:02:48 +01:00
Clementine-audio-player-Mac.../ext/libclementine-common/core/override.h
2012-06-20 16:49:41 +02:00

23 lines
496 B
C

#ifndef OVERRIDE_H
#define OVERRIDE_H
// Defines the OVERRIDE macro as C++11's override control keyword if
// it is available.
#ifndef __has_extension
#define __has_extension(x) 0
#endif
#if __has_extension(cxx_override_control) // Clang feature checking macro.
# define OVERRIDE override
#elif defined(__GNUC__) // Clang also defines this.
# include <features.h>
# if __GNUC_PREREQ(4,7)
# define OVERRIDE override
# else
# define OVERRIDE
# endif
#endif
#endif // OVERRIDE_H