only mark a function as hot when compiled with GCC >= 4.3

This commit is contained in:
Mitchell Livingston
2009-11-02 01:09:11 +00:00
parent 4d817b0701
commit a43b73aad0

View File

@@ -69,7 +69,7 @@ extern "C" {
#endif
#ifndef TR_GNUC_NULL_TERMINATED
#if __GNUC__ >= 4
#if __GNUC__ > 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ >= 2 )
#define TR_GNUC_NULL_TERMINATED __attribute__ ( ( __sentinel__ ) )
#define TR_GNUC_HOT __attribute ( ( hot ) )
#else