mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 06:47:42 +00:00
enforce #ifndef __HEADER_H instead of #pragma once, for code consitency and better portability (#2296)
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __BACKLIGHT_H
|
||||
#define __BACKLIGHT_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@@ -118,3 +119,5 @@ class BacklightCAT4004 : public BacklightBase {
|
||||
};
|
||||
|
||||
} /* namespace portapack */
|
||||
|
||||
#endif
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __BUFFER_EXCHANGE_H
|
||||
#define __BUFFER_EXCHANGE_H
|
||||
|
||||
#include "ch.h"
|
||||
|
||||
@@ -110,3 +111,5 @@ class BufferExchange {
|
||||
|
||||
StreamBuffer* get_prefill(FIFO<StreamBuffer*>* fifo);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __I2CDEV_PPMOD_H
|
||||
#define __I2CDEV_PPMOD_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <array>
|
||||
@@ -71,3 +72,5 @@ class I2cDev_PPmod : public I2cDev {
|
||||
};
|
||||
|
||||
} /* namespace i2cdev */
|
||||
|
||||
#endif
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef __RANDOM_H
|
||||
#define __RANDOM_H
|
||||
|
||||
/* Period parameters */
|
||||
#define N 624
|
||||
@@ -33,3 +34,5 @@
|
||||
/* initializes state[N] with a seed */
|
||||
extern void init_genrand(unsigned long s);
|
||||
extern long genrand_int31(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user