summaryrefslogtreecommitdiffhomepage
path: root/compat/shm.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-25 13:15:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-25 13:15:35 +0100
commit9d991e084e09692219bd71651eb14005056681ca (patch)
tree86ca243fb7e3bb3542f40e39b2a8c74d19547b94 /compat/shm.h
parent966478d270a53eca1a5506414094ecea6235edfe (diff)
fix build
Diffstat (limited to 'compat/shm.h')
-rw-r--r--compat/shm.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/compat/shm.h b/compat/shm.h
index 7cd7693d..856b9c8c 100644
--- a/compat/shm.h
+++ b/compat/shm.h
@@ -49,14 +49,16 @@ struct SHM_TYPE_NAME {
};
#define SHM_FUN_NAME(f) PP_CAT(SHM_FUN_PREFIX, f)
-#define SHM_FUN(r, f, ...) SHM_EXTERN SHM_EXPORT r SHM_FUN_NAME(f)(SHM_TYPE_NAME* __restrict self, __VA_ARGS__)
+#define SHM_FUN_(r, f)SHM_EXTERN SHM_EXPORT r SHM_FUN_NAME(f)
+#define SHM_FUN(r, f, ...) SHM_FUN_(r, f)(SHM_TYPE_NAME* self, __VA_ARGS__)
+#define SHM_FUN0(r, f) SHM_FUN_(r, f)(SHM_TYPE_NAME* self)
SHM_FUN(void, init, const char* shm_name, const char* mutex_name, int map_size);
-SHM_FUN(void, free);
-SHM_FUN(void, lock);
-SHM_FUN(void, unlock);
-SHM_FUN(void*,ptr);
-SHM_FUN(bool, success);
+SHM_FUN0(void, free);
+SHM_FUN0(void, lock);
+SHM_FUN0(void, unlock);
+SHM_FUN0(void*,ptr);
+SHM_FUN0(bool, success);
#ifndef BUILD_SHM
# undef SHM_FUN