for (index = 0; index < argc; index++)
{
+ printf("argv[%d]: %s\n", index, argv[index]);
instance->context->argv[index] = _strdup(argv[index]);
}
#include "xf_window.h"
#include "xf_monitor.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct xf_WorkArea
{
UINT32 x;
FREERDP_API xfInfo* xf_new(HANDLE hInstance, HANDLE hWndParent, int argc, char** argv);
FREERDP_API void xf_free(xfInfo* xfi);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __XF_INTERFACE_H */
} while (0)
static INLINE BOOL stream_skip(wStream* s, int sz) {
- if (stream_get_left(s) < sz)
+ if ((int) stream_get_left(s) < sz)
return FALSE;
stream_seek(s, sz);
return TRUE;