Browse Source

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

tags/v0.2.15^2
Zhang Xianyi 10 years ago
parent
commit
1ce054fcb3
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      driver/others/memory.c

+ 5
- 0
driver/others/memory.c 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;


Loading…
Cancel
Save