summaryrefslogtreecommitdiff
path: root/src/libudev/strxcpyx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libudev/strxcpyx.h')
-rw-r--r--src/libudev/strxcpyx.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libudev/strxcpyx.h b/src/libudev/strxcpyx.h
index 962c389e93..e3450311df 100644
--- a/src/libudev/strxcpyx.h
+++ b/src/libudev/strxcpyx.h
@@ -24,8 +24,10 @@
#include <stdarg.h>
#include <stdbool.h>
+#include "macro.h"
+
size_t strpcpy(char **dest, size_t size, const char *src);
-size_t strpcpyf(char **dest, size_t size, const char *src, ...) __attribute__((format(printf, 3, 4)));
-size_t strpcpyl(char **dest, size_t size, const char *src, ...) __attribute__((sentinel));
+size_t strpcpyf(char **dest, size_t size, const char *src, ...) _printf_(3, 4);
+size_t strpcpyl(char **dest, size_t size, const char *src, ...) _sentinel_;
size_t strscpy(char *dest, size_t size, const char *src);
-size_t strscpyl(char *dest, size_t size, const char *src, ...) __attribute__((sentinel));
+size_t strscpyl(char *dest, size_t size, const char *src, ...) _sentinel_;