changeset 164:87f8ef73a160

doc: some fixes
author David Demelier <markand@malikania.fr>
date Sun, 18 Oct 2020 17:26:39 +0200
parents 4bbfcd9180a8
children eb3148c1e54d
files libcore/core/plat.h libcore/core/state.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libcore/core/plat.h	Sun Oct 18 17:14:42 2020 +0200
+++ b/libcore/core/plat.h	Sun Oct 18 17:26:39 2020 +0200
@@ -38,10 +38,10 @@
 
 #else
 
-#if defined(__GNUC__)
-#define PLAT_PRINTF(p1, p2) __attribute__ ((format (printf, p1, p2)))
+#if defined(__GNUC__) || defined(__clang__)
+#       define PLAT_PRINTF(p1, p2) __attribute__ ((format (printf, p1, p2)))
 #else
-#define PLAT_PRINTF(p1, p2)
+#       define PLAT_PRINTF(p1, p2)
 #endif
 
 #endif /* !DOXYGEN  */
--- a/libcore/core/state.h	Sun Oct 18 17:14:42 2020 +0200
+++ b/libcore/core/state.h	Sun Oct 18 17:26:39 2020 +0200
@@ -56,7 +56,7 @@
 	 * \param state this state
 	 * \param ev the event
 	 */
-	void (*handle)(struct state *state, const union event *);
+	void (*handle)(struct state *state, const union event *ev);
 
 	/**
 	 * (+) Update the state.