Browse Source

Update template config.h with `#pragma once` (#3415)

* Update template config.h with `#pragma once`

Making sure this is consistent with #3404

* Move to `#pragma once` for the other templates
pull/3420/head 0.6.67
Evan Travers 5 years ago
committed by Drashna Jaelre
parent
commit
96cb9f4661
3 changed files with 3 additions and 17 deletions
  1. +1
    -5
      quantum/template/avr/config.h
  2. +1
    -6
      quantum/template/base/keymaps/default/config.h
  3. +1
    -6
      quantum/template/ps2avrgb/config.h

+ 1
- 5
quantum/template/avr/config.h View 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

+ 1
- 6
quantum/template/base/keymaps/default/config.h View File

@ -14,11 +14,6 @@
* 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

+ 1
- 6
quantum/template/ps2avrgb/config.h View 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

Loading…
Cancel
Save