Skip to content

Consider including WProgram.h from the avr-gcc command line [imported] #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cmaglie opened this issue Nov 15, 2012 · 1 comment
Closed
Labels
Type: Duplicate Another item already exists for this topic
Milestone

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 156 moved from a Google Code project.
Added by 2009-12-22T21:47:40.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Enhancement, Priority-Medium, OpSys-All, Component-IDE

Original description

What change would like to see?

Include WProgram.h using a command line argument to avr-gcc instead of inserting it into the
source code of the user sketch.

Why?

To prevent pre-processing errors, like the one described at: <http://www.arduino.cc/cgi-
bin/yabb2/YaBB.pl?num=1261506776> (the #include ends up within a false #ifdef).

Would this cause any incompatibilities with previous versions? If so, how
can these be mitigated?

It would prevent people from using #defines to influence the behavior of the code in
WProgram.h, although it's not clear if anyone does this.

@cmaglie
Copy link
Member Author

cmaglie commented May 27, 2015

Including WProgram.h via command line doesn't solve the problem, another very similar issue but with a more complete test case is here: #2630

Closing as duplicate of #2630

@cmaglie cmaglie closed this as completed May 27, 2015
@ffissore ffissore added this to the Release 1.6.5 milestone May 27, 2015
tbowmo pushed a commit to tbowmo/Arduino that referenced this issue Jul 14, 2016
Demoted #error to #warning in SecureActuator.ino
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jul 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

4 participants