Ignore:
Timestamp:
08/11/05 11:26:47 (7 years ago)
Author:
gnue
Message:

can compile for iPod Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/src/newt_core/NewtFile.c

    r23 r40  
    1616#include <unistd.h> 
    1717 
    18 #ifdef __WIN32__ 
     18#include "NewtType.h" 
     19 
     20 
     21#if defined(__WIN32__) 
    1922    #include "win/dlfcn.h" 
    20 #else 
     23#elif defined(HAVE_DLOPEN) 
    2124    #include <dlfcn.h> 
     25#endif 
     26 
     27#ifndef __WIN32__ 
    2228    #include <pwd.h> 
    2329#endif 
     30 
    2431 
    2532#include "NewtCore.h" 
     
    4754 
    4855 
     56#ifdef HAVE_DLOPEN 
    4957/*------------------------------------------------------------------------*/ 
    5058/** “®“Iƒ‰ƒCƒuƒ‰ƒŠ‚ðƒCƒ“ƒXƒg[ƒ‹‚·‚é 
     
    7785    return lib; 
    7886} 
     87 
     88#endif /* HAVE_DLOPEN */ 
    7989 
    8090 
     
    400410 */ 
    401411 
     412#ifdef HAVE_DLOPEN 
     413 
    402414newtRef NsLoadLib(newtRefArg rcvr, newtRefArg r) 
    403415{ 
     
    430442} 
    431443 
     444#endif /* HAVE_DLOPEN */ 
     445 
     446 
    432447 
    433448/*------------------------------------------------------------------------*/ 
     
    500515        newtRefVar  initObj[] = {kNewtRefUnbind, kNewtRefUnbind}; 
    501516        file_ext_t  lib_exts[] = { 
     517 
     518#ifdef HAVE_DLOPEN 
    502519/* 
    503520            {NSSTR(".dylib"),           typeDylib}, 
     
    506523*/ 
    507524            {NSSTR(__DYLIBSUFFIX__),    typeDylib}, 
     525#endif /* HAVE_DLOPEN */ 
     526 
    508527            {NSSTR(".newt"),            typeScript}, 
    509528        }; 
     
    543562                if (NewtFileExists(NewtRefToString(path))) 
    544563                { 
     564#ifdef HAVE_DLOPEN 
    545565                    if (lib_exts[j].type == typeDylib) 
    546566                    { 
     
    549569                    } 
    550570                    else 
     571#endif /* HAVE_DLOPEN */ 
    551572                    { 
    552573                        NcSetSlot(requires, sym, path); 
Note: See TracChangeset for help on using the changeset viewer.