Make esl work with C++ compilers

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11336 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene committed 2009-01-21 20:04:07 +00:00
1 parent af82478311
commit 0a8735931b
4 files changed
+50 -5

No files matched your search

+9 -1
View File
@@ -23,6 +23,10 @@
#include "esl.h"
#ifdef _cplusplus
extern "C" {
#endif /* defined(_cplusplus) */
typedef struct esl_mutex esl_mutex_t;
typedef struct esl_thread esl_thread_t;
typedef void *(*esl_thread_function_t) (esl_thread_t *, void *);
@@ -36,7 +40,11 @@ ESL_DECLARE(esl_status_t) esl_mutex_lock(esl_mutex_t *mutex);
ESL_DECLARE(esl_status_t) esl_mutex_trylock(esl_mutex_t *mutex);
ESL_DECLARE(esl_status_t) esl_mutex_unlock(esl_mutex_t *mutex);
#endif
#ifdef _cplusplus
}
#endif /* defined(_cplusplus) */
#endif /* defined(_ESL_THREADMUTEX_H) */
/* For Emacs:
* Local Variables: