summaryrefslogtreecommitdiff
path: root/libadhocutil/visibility.h
diff options
context:
space:
mode:
Diffstat (limited to 'libadhocutil/visibility.h')
-rw-r--r--libadhocutil/visibility.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/libadhocutil/visibility.h b/libadhocutil/visibility.h
index c049b82..2eb62ad 100644
--- a/libadhocutil/visibility.h
+++ b/libadhocutil/visibility.h
@@ -1,7 +1,4 @@
-#ifndef DLL_PUBLIC
-#define DLL_PUBLIC __attribute__((visibility("default")))
-#endif
+#pragma once
-#ifndef DLL_PRIVATE
+#define DLL_PUBLIC __attribute__((visibility("default")))
#define DLL_PRIVATE __attribute__((visibility("hidden")))
-#endif