From 5a90bf52edafcca1e40d8627b9f41ebf2aa3674c Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Tue, 1 Dec 2015 23:08:41 -0800 Subject: [PATCH] dll: expose FspNtStatusFromWin32 and FspDebugLog --- inc/winfsp/winfsp.h | 3 ++- src/dll/debug.c | 4 +--- src/dll/library.h | 5 ----- src/dll/ntstatus.c | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/inc/winfsp/winfsp.h b/inc/winfsp/winfsp.h index e37a3bba..c38274d0 100644 --- a/inc/winfsp/winfsp.h +++ b/inc/winfsp/winfsp.h @@ -19,6 +19,7 @@ #define FSP_API __declspec(dllimport) #endif -NTSTATUS FspNtStatusFromWin32(DWORD Error); +FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error); +FSP_API VOID FspDebugLog(const char *format, ...); #endif diff --git a/src/dll/debug.c b/src/dll/debug.c index 29209b66..78a10d53 100644 --- a/src/dll/debug.c +++ b/src/dll/debug.c @@ -7,8 +7,7 @@ #include #include -#if !defined(NDEBUG) -VOID FspDebugLog(const char *format, ...) +FSP_API VOID FspDebugLog(const char *format, ...) { char buf[512]; va_list ap; @@ -17,4 +16,3 @@ VOID FspDebugLog(const char *format, ...) va_end(ap); OutputDebugStringA(buf); } -#endif diff --git a/src/dll/library.h b/src/dll/library.h index 16a4740e..6e1dc747 100644 --- a/src/dll/library.h +++ b/src/dll/library.h @@ -22,9 +22,4 @@ #define DEBUGLOG(fmt, ...) ((void)0) #endif -/* debug */ -#if !defined(NDEBUG) -VOID FspDebugLog(const char *format, ...); -#endif - #endif diff --git a/src/dll/ntstatus.c b/src/dll/ntstatus.c index aade7c9b..d2532623 100644 --- a/src/dll/ntstatus.c +++ b/src/dll/ntstatus.c @@ -6,7 +6,7 @@ #include -NTSTATUS FspNtStatusFromWin32(DWORD Error) +FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error) { switch (Error) {