Refs #669. Fixed the build bug with gcc on Mac OS X.

This commit is contained in:
Zhang Xianyi 2015-10-22 11:07:35 -05:00
parent 3684706a12
commit 1ce054fcb3
1 changed files with 5 additions and 0 deletions

View File

@ -139,8 +139,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define BITMASK(a, b, c) ((((a) >> (b)) & (c)))
#if defined(OS_DARWIN) && defined(C_GCC)
#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#else
#define CONSTRUCTOR __attribute__ ((constructor(101)))
#define DESTRUCTOR __attribute__ ((destructor(101)))
#endif
#ifdef DYNAMIC_ARCH
gotoblas_t *gotoblas = NULL;