[PATCH 28/30] Added wdlXXX macos to linux/port.h


Michael Schonberg <mschonberg@...>
 

These are simple macros for manipulating shared objects. Windows
uses the corresponding Win32 Methods.

Signed-off-by: Mike Schonberg <mschonberg@nyx.com>
---
common/c_cpp/src/c/linux/port.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/common/c_cpp/src/c/linux/port.h b/common/c_cpp/src/c/linux/port.h
index 83a7a82..4e956c8 100644
--- a/common/c_cpp/src/c/linux/port.h
+++ b/common/c_cpp/src/c/linux/port.h
@@ -164,6 +164,12 @@ int wsem_timedwait (wsem_t* sem, unsigned int ts);

#define wGetCurrentThreadId pthread_self

+/* macros for shared libraries */
+#define wdlopen dlopen
+#define wdlsym dlsym
+#define wdlclose dlclose
+#define wdlerror dlerror
+
/* timegm() and nanosleep not available on Windows */
#define wtimegm timegm

--
1.7.7.6

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.