1
0
Fork 0

Change include guards in tmk_core/ and drivers/ to pragma once (#11240)

This commit is contained in:
Ryan 2020-12-26 15:56:11 +11:00 committed by GitHub
parent 48f4768d33
commit 1d1d5da43f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
60 changed files with 96 additions and 258 deletions

View file

@ -1,5 +1,4 @@
#ifndef SUSPEND_AVR_H
#define SUSPEND_AVR_H
#pragma once
#include <stdint.h>
#include <stdbool.h>
@ -24,5 +23,3 @@ __asm__ __volatile__ ( \
: "r0" \
)
// clang-format on
#endif

View file

@ -15,8 +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 TIMER_AVR_H
#define TIMER_AVR_H 1
#pragma once
#include <stdint.h>
@ -38,5 +37,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if (TIMER_RAW_TOP > 255)
# error "Timer0 can't count 1ms at this clock freq. Use larger prescaler."
#endif
#endif

View file

@ -2,8 +2,7 @@
Extended itoa, puts and printf (C)ChaN, 2011
-----------------------------------------------------------------------------*/
#ifndef XPRINTF_H
#define XPRINTF_H
#pragma once
#include <inttypes.h>
#include <avr/pgmspace.h>
@ -102,5 +101,3 @@ char xatoi(char **str, long *ret);
#ifdef __cplusplus
}
#endif
#endif