summaryrefslogtreecommitdiff
path: root/py/circuitpy_mpconfig.h
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-11-16 15:22:20 -0600
committerJeff Epler <jepler@gmail.com>2019-11-18 11:00:24 -0600
commitacde22a43603faf65510b3a9ba78ba5ac1f45b44 (patch)
tree2862faaf6eef68802a8ab23bd25263cfde1c567f /py/circuitpy_mpconfig.h
parent9000c88965ea3994d653b25407ef0975e19d4373 (diff)
circuitpy_mpconfig.h: Move includes after include-guard
To benefit from gcc's "once-only headers" implementation, the "wrapper-#ifndef" must be the first non-comment part of the file, according to the manual for various gcc/cpp versions.
Diffstat (limited to 'py/circuitpy_mpconfig.h')
-rw-r--r--py/circuitpy_mpconfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h
index b1e7bc05a..efab6a4d6 100644
--- a/py/circuitpy_mpconfig.h
+++ b/py/circuitpy_mpconfig.h
@@ -28,11 +28,11 @@
// sure that the same feature set and settings are used, such as in atmel-samd
// and nrf.
-#include <stdint.h>
-
#ifndef __INCLUDED_MPCONFIG_CIRCUITPY_H
#define __INCLUDED_MPCONFIG_CIRCUITPY_H
+#include <stdint.h>
+
// This is CircuitPython.
#define CIRCUITPY 1