Ignore:
Timestamp:
2012-04-26T18:11:56+12:00 (12 years ago)
Author:
ak19
Message:

Joshua Scarsbrook found that compilation failed on Macs (he was compiling GS3, but the compilation failed in GS2 code) and that this had to do with unix not being defined on macs, so that the compiler went on to the Windows part of the hash-definition and then failed. Dr Bainbridge found there was an equivalent APPLE definition which would be true for all Mac operating systems (including iPhones).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mg/lib/mglong.h

    r25152 r25492  
    22#define MGLONG_H
    33
    4 #ifdef __unix__
     4// See http://stackoverflow.com/questions/6802903/c-ifdef-mac-os-x-question
     5// and http://stackoverflow.com/questions/5919996/how-to-detect-reliably-mac-os-x-ios-linux-windows-in-c-preprocessor
     6#if defined __unix__ || defined __APPLE__
    57#include <stdint.h>
    68#else
Note: See TracChangeset for help on using the changeset viewer.