winpr: fix ranlib missing symbols warnings on OS X

This commit is contained in:
Marc-André Moreau 2014-05-09 22:44:19 -04:00
parent bf39fc79b6
commit fb3662c7e2
10 changed files with 45 additions and 64 deletions

View File

@ -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
}

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -35,7 +35,6 @@ set(${MODULE_PREFIX}_SRCS
semaphore.c
sleep.c
srw.c
synch.c
synch.h
timer.c
wait.c)

View File

@ -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>

View File

@ -41,6 +41,9 @@
#ifndef _WIN32
BOOL WINAPI FileTimeToSystemTime(const FILETIME *lpFileTime, LPSYSTEMTIME lpSystemTime)
{
return FALSE; /* unimplemented */
}
#endif

View File

@ -25,3 +25,7 @@
#include "wlog/TextMessage.h"
void wlog_TextMessage_dummy()
{
/* avoid no symbol ranlib warning */
}