Skip to content

Commit

Permalink
Fix some more missing #pragma onces (qmk#20241)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and coquizen committed Jun 22, 2023
1 parent 3125dd9 commit 2a6d3be
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 4 deletions.
2 changes: 2 additions & 0 deletions keyboards/25keys/cassette42/common/oled_helper.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#ifdef OLED_ENABLE

void render_logo(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/doio/kb16/lib/bongocat/bongocat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_bongocat(void);
2 changes: 2 additions & 0 deletions keyboards/doio/kb16/lib/layer_status/layer_status.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_layer_status(void);
2 changes: 2 additions & 0 deletions keyboards/doio/kb16/lib/logo.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_logo(void);
2 changes: 2 additions & 0 deletions keyboards/gboards/engine/keymap_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* With this disgusting bodge, you can just edit your .defs and compile!
*/

#pragma once

// Clear all X Macros
#define PRES BLANK
#define KEYS BLANK
Expand Down
2 changes: 2 additions & 0 deletions keyboards/gboards/g/config_default.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "engine.h"

// Configuration options for the engine
Expand Down
2 changes: 2 additions & 0 deletions keyboards/gboards/g/keymap_combo.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

// Keymap helpers
// define reference layers per layer.
#define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \
Expand Down
3 changes: 3 additions & 0 deletions keyboards/gboards/g/keymap_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* using a external generator (Like is done for the ASETNIOP base keymaps)
* With this disgusting bodge, you can just edit your .defs and compile!
*/

#pragma once

#include "g/engine.h"

// Clear all X Macros
Expand Down
2 changes: 2 additions & 0 deletions keyboards/gopolar/gg86/lib/logo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_logo(void);
2 changes: 2 additions & 0 deletions keyboards/gopolar/gg86/lib/wave.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

extern const unsigned char font[] PROGMEM;

#define ROW_1 OLED_DISPLAY_WIDTH
Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/d48/taphold.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "quantum.h"

typedef enum taphold_mode_t {
Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/promethium/color.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#define COLOR_BLANK 0, 0, 0

#define COLOR_BLACK 0, 0, 0
Expand Down
2 changes: 2 additions & 0 deletions keyboards/handwired/promethium/rgbsps.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b);
void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b);
void rgbsps_turnoff(void);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

// list of OUTPUT(row) ports
#define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0)
// list of OUTPUT(row) pins
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#define MATRIX_EXTENSION_74HC157 B2
// #define MATRIX_EXTENSION_74HC153 B2, B6

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#if defined(__AVR__)
/* -------------------- AVR (Pro Micro) ----------------------- */

Expand Down
5 changes: 1 addition & 4 deletions keyboards/hhkb/rn42/suart.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#ifndef SUART
#define SUART
#pragma once

void xmit(uint8_t);
uint8_t rcvr(void);
uint8_t recv(void);

#endif /* SUART */
2 changes: 2 additions & 0 deletions keyboards/horrortroll/handwired_k552/lib/bongocat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_bongocat(void);
2 changes: 2 additions & 0 deletions keyboards/horrortroll/handwired_k552/lib/galaxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_galaxy(void);
2 changes: 2 additions & 0 deletions keyboards/horrortroll/handwired_k552/lib/logo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_logo(void);
2 changes: 2 additions & 0 deletions keyboards/horrortroll/lemon40/lib/bongocat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

void render_bongocat(void);
2 changes: 2 additions & 0 deletions keyboards/marksard/rhymestone/common/oled_helper.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <stdint.h>
#include "action.h"

Expand Down
2 changes: 2 additions & 0 deletions keyboards/marksard/treadstone48/common/oled_helper.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#ifdef OLED_ENABLE

#include <stdint.h>
Expand Down
2 changes: 2 additions & 0 deletions keyboards/work_louder/rgb_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

#ifndef VIA_ENABLE
Expand Down
2 changes: 2 additions & 0 deletions keyboards/yushakobo/quick17/quick17_prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

enum layer_names {
Expand Down

0 comments on commit 2a6d3be

Please sign in to comment.