]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Update template config.h with `#pragma once` (#3415)
authorEvan Travers <evantravers@gmail.com>
Mon, 16 Jul 2018 15:44:16 +0000 (11:44 -0400)
committerDrashna Jaelre <drashna@live.com>
Mon, 16 Jul 2018 15:44:16 +0000 (08:44 -0700)
* Update template config.h with `#pragma once`

Making sure this is consistent with #3404

* Move to `#pragma once` for the other templates

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

index ac31745022139a805bd0d3306d77c54f0b2c9c4c..f7298cebb77661152559c43a0a9f86ccd1d47bd0 100644 (file)
@@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
-
-#include "config_common.h"
+#pragma once
 
 /* USB Device descriptor parameter */
 #define VENDOR_ID       0xFEED
@@ -215,4 +212,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 */ 
 
-#endif
index 0f756350514c248c3f92d5264af4a99344a44bee..4496c59100617fc8c9e820df1515a623273b5d14 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef CONFIG_USER_H
-#define CONFIG_USER_H
-
-#include "config_common.h"
+#pragma once
 
 // place overrides here
-
-#endif
index b9574659523d50ac13e05c48d85a3235203d5a14..d528314cb45d0dbf6ed43522ddd0d4de6411b557 100644 (file)
@@ -15,10 +15,7 @@ You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#ifndef CONFIG_H
-#define CONFIG_H
-
-#include "config_common.h"
+#pragma once
 
 #define VENDOR_ID       0x20A0
 #define PRODUCT_ID      0x422D
@@ -45,5 +42,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* key combination for command */
 #define IS_COMMAND() (keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
-
-#endif