mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
include: cleanup api.h
This commit is contained in:
@@ -79,8 +79,10 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gd /MT")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /O2 /Ob2")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Gd")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MT")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /O2")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /Ob2")
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_AMD64_")
|
||||
else()
|
||||
|
||||
@@ -17,10 +17,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __FREERDP_API_H
|
||||
#define __FREERDP_API_H
|
||||
#ifndef FREERDP_API_H
|
||||
#define FREERDP_API_H
|
||||
|
||||
#define FREERDP_INTERFACE_VERSION 4
|
||||
#ifdef _WIN32
|
||||
#define FREERDP_CC __cdecl
|
||||
#else
|
||||
#define FREERDP_CC
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define INLINE __inline
|
||||
#else
|
||||
#define INLINE inline
|
||||
#endif
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#ifdef FREERDP_EXPORTS
|
||||
@@ -38,25 +48,13 @@
|
||||
#endif
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#define FREERDP_API __attribute__ ((visibility("default")))
|
||||
#define FREERDP_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define FREERDP_API
|
||||
#define FREERDP_API
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define FREERDP_CC __cdecl
|
||||
#else
|
||||
#define FREERDP_CC
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#define INLINE __inline
|
||||
#else
|
||||
#define INLINE inline
|
||||
#endif
|
||||
|
||||
#define IFCALL(_cb, ...) do { if (_cb != NULL) { _cb( __VA_ARGS__ ); } } while (0)
|
||||
#define IFCALLRET(_cb, _ret, ...) do { if (_cb != NULL) { _ret = _cb( __VA_ARGS__ ); } } while (0)
|
||||
|
||||
#endif
|
||||
#endif /* FREERDP_API */
|
||||
|
||||
Reference in New Issue
Block a user