mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-20 21:01:25 +03:00
Moving #include WProgram.h to after other preprocessor directives in the main sketch file.
This commit is contained in:
@ -321,6 +321,7 @@ public class PdePreprocessor {
|
|||||||
int prototypeInsertionPoint = firstStatement(program);
|
int prototypeInsertionPoint = firstStatement(program);
|
||||||
|
|
||||||
out.print(program.substring(0, prototypeInsertionPoint));
|
out.print(program.substring(0, prototypeInsertionPoint));
|
||||||
|
out.print("#include \"WProgram.h\"\n");
|
||||||
|
|
||||||
// print user defined prototypes
|
// print user defined prototypes
|
||||||
for (int i = 0; i < prototypes.size(); i++) {
|
for (int i = 0; i < prototypes.size(); i++) {
|
||||||
@ -336,10 +337,7 @@ public class PdePreprocessor {
|
|||||||
*
|
*
|
||||||
* @param out PrintStream to write it to.
|
* @param out PrintStream to write it to.
|
||||||
*/
|
*/
|
||||||
void writeHeader(PrintStream out)
|
void writeHeader(PrintStream out) throws IOException {}
|
||||||
throws IOException {
|
|
||||||
out.print("#include \"WProgram.h\"\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write any necessary closing text.
|
* Write any necessary closing text.
|
||||||
|
Reference in New Issue
Block a user