aboutsummaryrefslogtreecommitdiffstats
path: root/libar2_erase.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-18 17:54:49 +0100
committerMattias Andrée <maandree@kth.se>2022-01-18 17:54:49 +0100
commitedb70e343f3000dfef1f38583e88e74d1e71d804 (patch)
tree9c900264882428578bba81748c3a773faec6ebc0 /libar2_erase.c
parentFix typo: libar2_earse -> libar2_erase (diff)
downloadlibar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.gz
libar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.bz2
libar2-edb70e343f3000dfef1f38583e88e74d1e71d804.tar.xz
Improve portability
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libar2_erase.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libar2_erase.c b/libar2_erase.c
index 490cc4a..417842f 100644
--- a/libar2_erase.c
+++ b/libar2_erase.c
@@ -39,9 +39,10 @@ libar2_erase(volatile void *mem_, size_t size)
/* Typo in version 1.0 */
#if defined(__GNUC__)
+LIBAR2_PUBLIC__
extern __typeof(libar2_erase) libar2_earse __attribute__((__weak__, __alias__("libar2_erase")));
#else
-void libar2_earse(volatile void *mem, size_t size);
+LIBAR2_PUBLIC__ void libar2_earse(volatile void *mem, size_t size);
void
libar2_earse(volatile void *mem, size_t size)
{