Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert "Config templates: protect config.h against multiple inclusion."

Teacup uses preprocessor magic which actually requires including
config.h twice.

This reverts commit c61191d.
  • Loading branch information...
commit 694e3c42985cdbfc27e3ce1d65b53bbdf82c606c 1 parent 8acb072
Traumflug authored February 27, 2011
5  config.gen3.h
... ...
@@ -1,5 +1,4 @@
1  
-#ifndef	_CONFIG_H
2  
-#define	_CONFIG_H
  1
+/* Notice to developers: this file is intentionally included twice. */
3 2
 
4 3
 /*
5 4
 	CONTENTS
@@ -422,5 +421,3 @@ DEFINE_TEMP_SENSOR(noheater,	TT_INTERCOM,		0)
422 421
 * OCR5CL - PL5 - DIO44                                                      *
423 422
 *                                                                           *
424 423
 \***************************************************************************/
425  
-
426  
-#endif /* _CONFIG_H */
5  config.gen6.h
... ...
@@ -1,5 +1,4 @@
1  
-#ifndef	_CONFIG_H
2  
-#define	_CONFIG_H
  1
+/* Notice to developers: this file is intentionally included twice. */
3 2
 
4 3
 /*
5 4
   Sample configuration file for the GEN6-Board sold by Camiel Gubbels.
@@ -411,5 +410,3 @@ DEFINE_HEATER(extruder,   PORTD, PIND6, OCR2B)
411 410
 * OCR5CL - PL5 - DIO44                                                      *
412 411
 *                                                                           *
413 412
 \***************************************************************************/
414  
-
415  
-#endif /* _CONFIG_H */
5  config.h.dist
... ...
@@ -1,5 +1,4 @@
1  
-#ifndef	_CONFIG_H
2  
-#define	_CONFIG_H
  1
+/* Notice to developers: this file is intentionally included twice. */
3 2
 
4 3
 /*
5 4
 	CONTENTS
@@ -439,5 +438,3 @@ DEFINE_HEATER(bed,			PORTB, PINB4, OCR0B)
439 438
 * OCR5CL - PL5 - DIO44                                                      *
440 439
 *                                                                           *
441 440
 \***************************************************************************/
442  
-
443  
-#endif /* _CONFIG_H */
5  config.ramps.h
... ...
@@ -1,5 +1,4 @@
1  
-#ifndef	_CONFIG_H
2  
-#define	_CONFIG_H
  1
+/* Notice to developers: this file is intentionally included twice. */
3 2
 
4 3
 /*
5 4
 	CONTENTS
@@ -425,5 +424,3 @@ DEFINE_HEATER(fan,			PORTH, PINH6, OCR2B)
425 424
 * OCR5CL - PL5 - DIO44                                                      *
426 425
 *                                                                           *
427 426
 \***************************************************************************/
428  
-
429  
-#endif /* _CONFIG_H */

0 notes on commit 694e3c4

Please sign in to comment.
Something went wrong with that request. Please try again.