mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
only mark a function as hot when compiled with GCC >= 4.3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user