change segment name for osx

OSX requires a comma after segment name. The segment name must also not be longer than 16 characters.

Pull Request: https://github.com/facebook/hiphop-php/pull/781
Esse commit está contido em:
Daniel Sloof
2013-05-19 22:00:11 -07:00
commit de Sara Golemon
commit 33817be827
+7 -1
Ver Arquivo
@@ -62,7 +62,13 @@ namespace HPHP { namespace Util {
#define INLINE_SINGLE_CALLER ALWAYS_INLINE
#define UNUSED __attribute__((unused))
#define FLATTEN __attribute__((flatten))
#define HOT_FUNC __attribute__ ((section (".text.hot.builtin")))
#ifndef __APPLE__
# define HOT_FUNC __attribute__ ((section (".text.hot.builtin")))
#else
// OSX requires a comma after segment name.
// The segment name must also not be longer than 16 characters.
# define HOT_FUNC __attribute__ ((section (".text.hot.built,")))
#endif
#define EXTERNALLY_VISIBLE __attribute__((externally_visible))
#ifdef DEBUG