From: Magnus Jacobsson Date: Sun, 2 Jan 2022 09:54:00 +0000 (+0100) Subject: cgraph: [nfc] rename DECLSPEC macro to SPRINT_API X-Git-Tag: 3.0.0~87^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26cbaac4ae730a933d7e97fa5114df217ec694ee;p=graphviz cgraph: [nfc] rename DECLSPEC macro to SPRINT_API --- diff --git a/lib/cgraph/sprint.h b/lib/cgraph/sprint.h index 584313d27..30cf1f1e2 100644 --- a/lib/cgraph/sprint.h +++ b/lib/cgraph/sprint.h @@ -2,12 +2,12 @@ #ifdef GVDLL #ifdef EXPORT_CGRAPH -#define DECLSPEC __declspec(dllexport) +#define SPRINT_API __declspec(dllexport) #else -#define DECLSPEC __declspec(dllimport) +#define SPRINT_API __declspec(dllimport) #endif #else -#define DECLSPEC /* nothing */ +#define SPRINT_API /* nothing */ #endif #ifdef __clang__ @@ -50,7 +50,7 @@ * @param ... Format arguments, if any * @returns A pointer to the constructed string or NULL on failure */ -DECLSPEC PRINTF_LIKE(1, 2) WUR +SPRINT_API PRINTF_LIKE(1, 2) WUR char *NULLABLE gv_sprint(const char *NONNULL format, ...); /** gv_sprint wrapper, calling exit if NULL is returned @@ -63,7 +63,7 @@ char *NULLABLE gv_sprint(const char *NONNULL format, ...); * @param ... Format arguments, if any * @returns A pointer to the constructed string */ -DECLSPEC PRINTF_LIKE(1, 2) RETURNS_NONNULL WUR +SPRINT_API PRINTF_LIKE(1, 2) RETURNS_NONNULL WUR char *NONNULL gv_sprint_or_exit(const char *NONNULL format, ...); #undef WUR @@ -71,4 +71,4 @@ char *NONNULL gv_sprint_or_exit(const char *NONNULL format, ...); #undef PRINTF_LIKE #undef NONNULL #undef NULLABLE -#undef DECLSPEC +#undef SPRINT_API