473,320 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MACRO exclusion

Hi,

I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?

Thanks and Regards,
Karthik.

Nov 15 '05 #1
5 1677

<ka**********@gmail.com> wrote
I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?

#undef _STDC_
#include <filewithevilmacrosinit.h>
Nov 15 '05 #2

<ka**********@gmail.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hi,

I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?


Look up #undef

-Mike
Nov 15 '05 #3
"ka**********@gmail.com" <ka**********@gmail.com> writes:
I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?


What exactly do you mean by "all macros defined with __STDC__"? Can
you give some examples?

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #4

"Keith Thompson" <ks***@mib.org> wrote
I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?


What exactly do you mean by "all macros defined with __STDC__"? Can
you give some examples?

I realised this after I had posted.
I'm not sure undefining the macro is the real answer.
Nov 15 '05 #5
On Sun, 28 Aug 2005 22:02:29 +0000, Malcolm wrote:

"Keith Thompson" <ks***@mib.org> wrote
I am porting some code and I need to exclude all macros defined with
__STDC__ . How do I do this using gcc?? Is there any change I can make
in the makefile?


What exactly do you mean by "all macros defined with __STDC__"? Can
you give some examples?

I realised this after I had posted.
I'm not sure undefining the macro is the real answer.


That's difficult to say if you don't tell us the real question.

Lawrence

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
5
by: clusardi2k | last post by:
Hello, I have a assignment just thrown onto my desk. What is the easiest way to solve it? Below is a brief description of the task. There are multible programs which use the same library...
2
by: Pete | last post by:
In Access 95/97 I used to be able to create pull down menus (File,Edit ...) from a macro. It seems there used to be some wizard for that. However in Access 2000 it seems you have to build your...
7
by: Newbie_sw2003 | last post by:
Where should I use them? I am giving you my understandings. Please correct me if I am wrong: MACRO: e.g.:#define ref-name 99 The code is substituted by the MACRO ref-name. So no overhead....
3
by: Alexander Ulyanov | last post by:
Hi all. Is it possible to pass the whole blocks of code (possibly including " and ,) as macro parameters? I want to do something like: MACRO(FOO, "Foo", "return "Foobar";", "foo();...
78
by: wkehowski | last post by:
The python code below generates a cartesian product subject to any logical combination of wildcard exclusions. For example, suppose I want to generate a cartesian product S^n, n>=3, of that...
1
by: illegal.prime | last post by:
So I have a container of objects that I don't want to iterate across when I'm modifying it. I.E. I lock on adds and deletes to the container - so that my traversals of it don't result in...
6
by: Scott | last post by:
I have two threads that share a python list. One thread adds to the list with append(), the other thread removes items with pop(). My question is -- are python list operations atomic? If they are...
5
by: Patrick A | last post by:
All, I'm dealing with a 3rd party application that can't interpret the Access function FormatCurrency. When it encounters my query with "Exclu: FormatCurrency(, 0)", it arfs. The vendor says...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.