aboutsummaryrefslogtreecommitdiffstats
path: root/libar2_erase.c
diff options
context:
space:
mode:
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)
{