Ticket #22621: c-toolkit-no-carbon.patch

File c-toolkit-no-carbon.patch, 1.4 KB (added by jashugan@…, 15 years ago)

Patch that disables graphics when building ncbi_tools. Only good if using the command line tools.

  • corelib/ncbienv.c

     
    19381938static char **targv = NULL;
    19391939
    19401940
    1941 #if defined(WIN_MAC)
     1941#if defined(WIN_MAC) || defined(OS_UNIX_DARWIN)
    19421942static FSSpec       apFileSpec;
    19431943static Str255       apName;
    19441944static Handle       apParam;
     
    20532053  }
    20542054}
    20552055#endif /* defined(OS_UNIX_DARWIN) */
    2056 #endif /* defined(WIN_MAC) */
     2056#endif /* defined(WIN_MAC) || defined(OS_UNIX_DARWIN) */
    20572057
    20582058
    20592059#if defined(OS_MSWIN) || defined(OS_VMS)
     
    22442244{
    22452245  NlmMutexLockEx( &corelibMutex );
    22462246  wasSetup = TRUE;
    2247 #if defined(WIN_MAC)
     2247#if defined(WIN_MAC) || defined(OS_UNIX_DARWIN)
    22482248  wasSetup = Nlm_SetupArguments_ST_Mac();
    22492249#elif defined(OS_UNIX)
    22502250  {{
     
    24242424  int          mib [2];
    24252425  Nlm_Char     model [32];
    24262426#endif
    2427   long         sysVer;
     2427  Nlm_Int4     sysVer;
    24282428#endif
    24292429  Nlm_CharPtr  str = "unknown";
    24302430
  • corelib/ncbiwin.h

     
    168168#include <Sound.h>
    169169#include <Folders.h>
    170170#endif
     171#elif defined(OS_UNIX_DARWIN)
     172#include <CoreServices/CoreServices.h>
    171173#endif
    172174
    173175                           /* used in ncbifile.c *****/
  • make/makedis.csh

     
    240240                endif
    241241        endif
    242242        set HAVE_MOTIF=0
    243         set HAVE_MAC=1
     243        # set HAVE_MAC=1
    244244        breaksw
    245245case NetBSD:
    246246        set platform=netbsd