Ignore:
Timestamp:
Apr 22, 2007, 10:57:48 AM (18 years ago)
Author:
bird
Message:

Applied patch from Paul (aka Creeping).

Location:
trunk/essentials/dev-lang/perl/os2/OS2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/perl/os2/OS2/Process/Process.xs

    r3187 r3188  
    221221    PIB *pib;
    222222   
     223#ifndef __KLIBC__
    223224    if (!(_emx_env & 0x200)) return (char*)ptypes[1]; /* not OS/2. */
     225#endif
    224226    if (CheckOSError(DosGetInfoBlocks(&tib, &pib)))
    225227        return NULL;
     
    234236    ULONG apptype;
    235237   
     238#ifndef __KLIBC__
    236239    if (!(_emx_env & 0x200))
    237240        croak("file_type not implemented on DOS"); /* not OS/2. */
     241#endif
    238242    if (CheckOSError(DosQueryAppType(path, &apptype))) {
    239243#if 0
     
    481485         HSWITCH hSwitch;   
    482486
     487#ifndef __KLIBC__
    483488         if (!(_emx_env & 0x200))
    484489             croak("switch_entry not implemented on DOS"); /* not OS/2. */
     490#endif
    485491         if (CheckWinError(hSwitch =
    486492                           myWinQuerySwitchHandle(hwnd, pid)))
     
    683689    SWENTRY swentry;
    684690
     691#ifndef __KLIBC__
    685692    if (!(_emx_env & 0x200))
    686693             croak("process_swentry not implemented on DOS"); /* not OS/2. */
     694#endif
     695
    687696    fill_swentry(&swentry, hwnd, pid);
    688697    return newSVpvn((char*)&swentry, sizeof(swentry));
     
    697706    SV *sv = newSVpvn("",0);
    698707
     708#ifndef __KLIBC__
    699709    if (!(_emx_env & 0x200))
    700710             croak("swentries_list not implemented on DOS"); /* not OS/2. */
     711#endif
    701712    if (!pWinQuerySwitchList)
    702713        AssignFuncPByORD(pWinQuerySwitchList, ORD_WinQuerySwitchList);
     
    759770    ULONG rc;                   /* For CheckOSError */
    760771
     772#ifndef __KLIBC__
    761773    if (!(_emx_env & 0x200))
    762774             croak("change_entry() not implemented on DOS"); /* not OS/2. */
     775#endif
    763776    if (!pWinChangeSwitchEntry)
    764777        AssignFuncPByORD(pWinChangeSwitchEntry, ORD_WinChangeSwitchEntry);
  • trunk/essentials/dev-lang/perl/os2/OS2/REXX/REXX.xs

    r3187 r3188  
    1515#endif
    1616
     17#ifndef __KLIBC__
    1718extern ULONG _emx_exception (   EXCEPTIONREPORTRECORD *,
    1819                                EXCEPTIONREGISTRATIONRECORD *,
    1920                                CONTEXTRECORD *,
    2021                                void *);
     22#endif
    2123
    2224static RXSTRING * strs;
     
    158160{
    159161    dTHX;
     162#ifndef __KLIBC__
    160163    EXCEPTIONREGISTRATIONRECORD xreg = { NULL, _emx_exception };
     164#endif
    161165    int i, rc;
    162166    unsigned long len;
Note: See TracChangeset for help on using the changeset viewer.