diff options
Diffstat (limited to 'xorg-server/include/os.h')
-rw-r--r-- | xorg-server/include/os.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/xorg-server/include/os.h b/xorg-server/include/os.h index 11b219845..a04b4e47d 100644 --- a/xorg-server/include/os.h +++ b/xorg-server/include/os.h @@ -119,6 +119,8 @@ extern _X_EXPORT int WriteToClient(ClientPtr /*who */ , int /*count */ , extern _X_EXPORT void ResetOsBuffers(void); +extern _X_EXPORT int TransIsListening(char *protocol); + extern _X_EXPORT void InitConnectionLimits(void); extern _X_EXPORT void NotifyParentProcess(void); @@ -458,7 +460,7 @@ extern _X_EXPORT void AccessUsingXdmcp(void); extern _X_EXPORT void -DefineSelf(int /*fd */ ); +DefineSelf(int /*fd */ , const int /*protocol*/); #if XDMCP extern _X_EXPORT void @@ -666,10 +668,20 @@ _X_ATTRIBUTE_PRINTF(1, 2) #define DebugF(...) /* */ #endif +#ifdef _MSC_VER +#ifdef INSERVER +#define SERVEXTERN _declspec(dllimport) +#else +#define SERVEXTERN _declspec(dllexport) +#endif +#else +#define SERVEXTERN _X_EXPORT +#endif + extern _X_EXPORT void VErrorF(const char *f, va_list args) _X_ATTRIBUTE_PRINTF(1, 0); -extern _X_EXPORT void +extern SERVEXTERN void ErrorF(const char *f, ...) _X_ATTRIBUTE_PRINTF(1, 2); extern _X_EXPORT void @@ -684,4 +696,8 @@ LogPrintMarkers(void); extern _X_EXPORT void xorg_backtrace(void); +#ifdef _MSC_VER +#define snprintf _snprintf +#endif + #endif /* OS_H */ |