winpr: fix ranlib missing symbols warnings on OS X
This commit is contained in:
parent
bf39fc79b6
commit
fb3662c7e2
@ -483,7 +483,17 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
DWORD WINAPI FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
|
||||
LPSTR lpBuffer, DWORD nSize, va_list* Arguments);
|
||||
|
||||
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
|
||||
LPWSTR lpBuffer, DWORD nSize, va_list* Arguments);
|
||||
|
||||
#ifdef UNICODE
|
||||
#define FormatMessage FormatMessageW
|
||||
#else
|
||||
#define FormatMessage FormatMessageA
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -22,6 +22,7 @@
|
||||
#endif
|
||||
|
||||
#include <winpr/crt.h>
|
||||
#include <winpr/error.h>
|
||||
|
||||
/**
|
||||
* api-ms-win-core-com-l1-1-0.dll:
|
||||
@ -110,6 +111,14 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
HRESULT CoInitializeEx(LPVOID pvReserved, DWORD dwCoInit)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CoUninitialize(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -20,8 +20,7 @@ set(MODULE_PREFIX "WINPR_HANDLE")
|
||||
|
||||
set(${MODULE_PREFIX}_SRCS
|
||||
handle.c
|
||||
handle.h
|
||||
table.c)
|
||||
handle.h)
|
||||
|
||||
if(MSVC AND (NOT MONOLITHIC_BUILD))
|
||||
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module.def)
|
||||
|
@ -1,32 +0,0 @@
|
||||
/**
|
||||
* WinPR: Windows Portable Runtime
|
||||
* Handle Management
|
||||
*
|
||||
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <winpr/crt.h>
|
||||
#include <winpr/handle.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
#include "../handle/handle.h"
|
||||
|
||||
#endif
|
||||
|
@ -90,7 +90,17 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
DWORD WINAPI FormatMessageA(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
|
||||
LPSTR lpBuffer, DWORD nSize, va_list* Arguments)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
DWORD WINAPI FormatMessageW(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, DWORD dwLanguageId,
|
||||
LPWSTR lpBuffer, DWORD nSize, va_list* Arguments)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -27,9 +27,13 @@ set(${MODULE_PREFIX}_SRCS
|
||||
smartcard.h
|
||||
smartcard_link.c
|
||||
smartcard_pcsc.c
|
||||
smartcard_pcsc.h
|
||||
smartcard_winscard.c
|
||||
smartcard_winscard.h)
|
||||
smartcard_pcsc.h)
|
||||
|
||||
if(WIN32)
|
||||
list(${MODULE_PREFIX}_SRCS APPEND
|
||||
smartcard_winscard.c
|
||||
smartcard_winscard.h)
|
||||
endif()
|
||||
|
||||
if(MSVC AND (NOT MONOLITHIC_BUILD))
|
||||
set(${MODULE_PREFIX}_SRCS ${${MODULE_PREFIX}_SRCS} module.def)
|
||||
|
@ -35,7 +35,6 @@ set(${MODULE_PREFIX}_SRCS
|
||||
semaphore.c
|
||||
sleep.c
|
||||
srw.c
|
||||
synch.c
|
||||
synch.h
|
||||
timer.c
|
||||
wait.c)
|
||||
|
@ -1,25 +0,0 @@
|
||||
/**
|
||||
* WinPR: Windows Portable Runtime
|
||||
* Synchronization Functions
|
||||
*
|
||||
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <winpr/synch.h>
|
||||
|
@ -41,6 +41,9 @@
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
|
||||
BOOL WINAPI FileTimeToSystemTime(const FILETIME *lpFileTime, LPSYSTEMTIME lpSystemTime)
|
||||
{
|
||||
return FALSE; /* unimplemented */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -25,3 +25,7 @@
|
||||
|
||||
#include "wlog/TextMessage.h"
|
||||
|
||||
void wlog_TextMessage_dummy()
|
||||
{
|
||||
/* avoid no symbol ranlib warning */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user