Put the defines wrapping the gcc attributes in the same place
in gpiod.h.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
*/
#define GPIOD_API __attribute__((visibility("default")))
+/**
+ * @brief Marks a function argument or variable as potentially unused.
+ */
+#define GPIOD_UNUSED __attribute__((unused))
+
/**
* @brief Shift 1 by given offset.
* @param nr Bit position.
*/
#define GPIOD_BIT(nr) (1UL << (nr))
-/**
- * @brief Marks a function argument or variable as potentially unused.
- */
-#define GPIOD_UNUSED __attribute__((unused))
-
/**
* @}
*