[Scons-users] Remove a macro from CPPDEFINES list
William Deegan
bill at baddogconsulting.com
Sat Nov 10 15:48:36 EST 2012
Sisira,
On Nov 10, 2012, at 4:54 AM, Sisira Jayasinghe <sisirajaya at gmail.com> wrote:
> Hi:
> The macro __STDC__ that gets defined in Sconstruct, but in certain source folders that has to be undefined ( #undef or /U ). I cannot find an Environment function to Remove it from CPPDEFINES list.
>
> Please let me know how can I accomplish this.
SConstructs are just python.
env['CPPDEFINES'].remove('__STDC__')
Should do the trick.
(see: http://docs.python.org/2.7/library/stdtypes.html#typesseq-mutable )
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20121110/8161b788/attachment.htm>
More information about the Scons-users
mailing list