Skip to content
Snippets Groups Projects
Commit e948c747 authored by deuce's avatar deuce
Browse files

Fix bugs in last commit.

parent 45553c19
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ else
XP_SEM := 1
else
ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D__unix__ -DUSE_XP_SEMAPHORES -I/usr/pkg/include
LFLAGS := -lpth -lpthread -L/usr/pkg/lib
CFLAGS += -D__unix__ -DUSE_XP_SEMAPHORES -I/usr/pkg/include -I/usr/pkg/pthreads/include
LFLAGS := -L/usr/pkg/lib -L/usr/pkg/pthreads/lib -lpthread
XP_SEM := 1
else
ifeq ($(os),qnx) # QNX
......
......@@ -61,7 +61,7 @@
/****************************************************************************/
/* Used to replace snprintf() guarantees to terminate. */
/****************************************************************************/
static int safe_snprintf(char *dst, size_t size, char *fmt, ...)
int DLLEXPORT safe_snprintf(char *dst, size_t size, char *fmt, ...)
{
va_list argptr;
int numchars;
......
......@@ -260,7 +260,7 @@ extern "C" {
DLLEXPORT int DLLCALL xp_random(int);
DLLEXPORT char* DLLCALL os_version(char *str);
DLLEXPORT char* DLLCALL lastchar(const char* str);
DLLEXPORT int DLLCALL safe_snprintf(char *dst, size_t size, char *fmt, ...)
#if defined(__cplusplus)
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment