VirtualBox

Changeset 1518 in kBuild


Ignore:
Timestamp:
Apr 10, 2008 11:40:13 PM (17 years ago)
Author:
bird
Message:

MSC doesn't grok #ifdefs inside macros invocations.

File:
1 edited

Legend:

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

    r1503 r1518  
    16501650#ifdef KMK
    16511651      (void) define_variable ("KMK_OVERRIDES", 13,
     1652                              "${-*-command-variables-*-}", o_env, 1);
    16521653#else
    16531654      (void) define_variable ("MAKEOVERRIDES", 13,
    1654 #endif
    16551655                              "${-*-command-variables-*-}", o_env, 1);
     1656#endif
    16561657    }
    16571658
     
    33083309#ifdef KMK
    33093310  v = define_variable ("KMK_FLAGS", 9,
     3311                       /* If there are switches, omit the leading dash
     3312                          unless it is a single long option with two
     3313                          leading dashes.  */
     3314                       &flagstring[(flagstring[0] == '-'
     3315                                    && flagstring[1] != '-')
     3316                                   ? 1 : 0],
     3317                       /* This used to use o_env, but that lost when a
     3318                          makefile defined MAKEFLAGS.  Makefiles set
     3319                          MAKEFLAGS to add switches, but we still want
     3320                          to redefine its value with the full set of
     3321                          switches.  Of course, an override or command
     3322                          definition will still take precedence.  */
     3323                       o_file, 1);
    33103324#else
    33113325  v = define_variable ("MAKEFLAGS", 9,
    3312 #endif
    33133326                       /* If there are switches, omit the leading dash
    33143327                          unless it is a single long option with two
     
    33243337                          definition will still take precedence.  */
    33253338                       o_file, 1);
     3339#endif
    33263340  if (! all)
    33273341    /* The first time we are called, set MAKEFLAGS to always be exported.
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