Changeset 40 for NEWT0/trunk/src/newt_core/NewtFile.c
- Timestamp:
- 08/11/05 11:26:47 (7 years ago)
- File:
-
- 1 edited
-
NEWT0/trunk/src/newt_core/NewtFile.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
NEWT0/trunk/src/newt_core/NewtFile.c
r23 r40 16 16 #include <unistd.h> 17 17 18 #ifdef __WIN32__ 18 #include "NewtType.h" 19 20 21 #if defined(__WIN32__) 19 22 #include "win/dlfcn.h" 20 #el se23 #elif defined(HAVE_DLOPEN) 21 24 #include <dlfcn.h> 25 #endif 26 27 #ifndef __WIN32__ 22 28 #include <pwd.h> 23 29 #endif 30 24 31 25 32 #include "NewtCore.h" … … 47 54 48 55 56 #ifdef HAVE_DLOPEN 49 57 /*------------------------------------------------------------------------*/ 50 58 /** ®ICuðCXg[·é … … 77 85 return lib; 78 86 } 87 88 #endif /* HAVE_DLOPEN */ 79 89 80 90 … … 400 410 */ 401 411 412 #ifdef HAVE_DLOPEN 413 402 414 newtRef NsLoadLib(newtRefArg rcvr, newtRefArg r) 403 415 { … … 430 442 } 431 443 444 #endif /* HAVE_DLOPEN */ 445 446 432 447 433 448 /*------------------------------------------------------------------------*/ … … 500 515 newtRefVar initObj[] = {kNewtRefUnbind, kNewtRefUnbind}; 501 516 file_ext_t lib_exts[] = { 517 518 #ifdef HAVE_DLOPEN 502 519 /* 503 520 {NSSTR(".dylib"), typeDylib}, … … 506 523 */ 507 524 {NSSTR(__DYLIBSUFFIX__), typeDylib}, 525 #endif /* HAVE_DLOPEN */ 526 508 527 {NSSTR(".newt"), typeScript}, 509 528 }; … … 543 562 if (NewtFileExists(NewtRefToString(path))) 544 563 { 564 #ifdef HAVE_DLOPEN 545 565 if (lib_exts[j].type == typeDylib) 546 566 { … … 549 569 } 550 570 else 571 #endif /* HAVE_DLOPEN */ 551 572 { 552 573 NcSetSlot(requires, sym, path);
Note: See TracChangeset
for help on using the changeset viewer.
