VirtualBox

Changeset 170 in kBuild for trunk/src


Ignore:
Timestamp:
Oct 13, 2004 3:20:11 PM (20 years ago)
Author:
bird
Message:

fixed includedir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/makedep/main.c

    r169 r170  
    387387            *incp++ = PREINCDIR;
    388388#endif
    389 #ifdef __UNIXOS2__
    390             {
    391                 char *emxinc = getenv("C_INCLUDE_PATH");
    392                 /* can have more than one component */
    393                 if (emxinc) {
    394                     char *beg, *end;
    395                     beg= (char*)strdup(emxinc);
    396                     for (;;) {
    397                         end = (char*)strchr(beg,';');
    398                         if (end) *end = 0;
    399                         if (incp >= includedirs + MAXDIRS)
    400                                 fatalerr("Too many include dirs\n");
    401                         *incp++ = beg;
    402                         if (!end) break;
    403                         beg = end+1;
    404                     }
    405                 }
    406             }
    407 #else /* !__UNIXOS2__, does not use INCLUDEDIR at all */
    408             if (incp >= includedirs + MAXDIRS)
     389
     390// This is bull, all gcc versions use this - OS/2 is not special case.
     391//#ifdef __UNIXOS2__
     392//          {
     393//              char *emxinc = getenv("C_INCLUDE_PATH");
     394//              /* can have more than one component */
     395//              if (emxinc) {
     396//                  char *beg, *end;
     397//                  beg= (char*)strdup(emxinc);
     398//                  for (;;) {
     399//                      end = (char*)strchr(beg,';');
     400//                      if (end) *end = 0;
     401//                      if (incp >= includedirs + MAXDIRS)
     402//                              fatalerr("Too many include dirs\n");
     403//                      *incp++ = beg;
     404//                      if (!end) break;
     405//                      beg = end+1;
     406//                  }
     407//              }
     408//          }
     409//#else /* !__UNIXOS2__, does not use INCLUDEDIR at all */
     410#ifdef INCLUDEDIR /* bird */
     411            if (incp >= includedirs + MAXDIRS)
    409412                fatalerr("Too many -I flags.\n");
    410413            *incp++ = INCLUDEDIR;
    411 #endif
     414#endif
     415//#endif
    412416
    413417#ifdef EXTRAINCDIR
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette