← Commit list

4535532ed3

Viktor Szakats
Viktor Szakats
2025-10-04
FAILED Duration: 483s

Subject

examples: fix two build issues surfaced with WinCE

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/examples/http2-upload.c+4 -2
@@ -40,8 +40,6 @@
#ifndef _MSC_VER
#include <sys/time.h>
#include <unistd.h>
-#elif (_MSC_VER < 1900)
-#define snprintf _snprintf
#endif
#ifdef _WIN32
@@ -52,6 +50,10 @@
#define fileno _fileno
#endif
+#if defined(_MSC_VER) && (_MSC_VER < 1900)
+#define snprintf _snprintf
+#endif
+
/* curl stuff */
#include <curl/curl.h>
docs/examples/synctime.c+2 -1
@@ -90,11 +90,12 @@ int main(void) { printf("Platform not supported.\n"); return 1; }
int main(void) { printf("Platform not supported.\n"); return 1; }
#else
-#include <windows.h>
#include <time.h>
#include <curl/curl.h>
+#include <windows.h>
+
#if defined(_MSC_VER) && (_MSC_VER < 1900)
#define snprintf _snprintf
#endif