Skip to content

Commit 96cb9f4

Browse files
evantraversdrashna
authored andcommitted
Update template config.h with #pragma once (qmk#3415)
* Update template config.h with `#pragma once` Making sure this is consistent with qmk#3404 * Move to `#pragma once` for the other templates
1 parent 8f0ec56 commit 96cb9f4

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

quantum/template/avr/config.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef CONFIG_H
19-
#define CONFIG_H
20-
21-
#include "config_common.h"
18+
#pragma once
2219

2320
/* USB Device descriptor parameter */
2421
#define VENDOR_ID 0xFEED
@@ -215,4 +212,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
215212
#endif
216213
*/
217214

218-
#endif

quantum/template/base/keymaps/default/config.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17-
#ifndef CONFIG_USER_H
18-
#define CONFIG_USER_H
19-
20-
#include "config_common.h"
17+
#pragma once
2118

2219
// place overrides here
23-
24-
#endif

quantum/template/ps2avrgb/config.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef CONFIG_H
19-
#define CONFIG_H
20-
21-
#include "config_common.h"
18+
#pragma once
2219

2320
#define VENDOR_ID 0x20A0
2421
#define PRODUCT_ID 0x422D
@@ -45,5 +42,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
4542

4643
/* key combination for command */
4744
#define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
48-
49-
#endif

0 commit comments

Comments
 (0)