Fix MSVC errors and warnings

This commit is contained in:
2024-10-05 20:07:48 +01:00
parent 1ddc5610f9
commit ffb99a3644
9 changed files with 77 additions and 51 deletions

View File

@@ -2,15 +2,14 @@
#define SHELL_UTILS_H
#include "platform.h"
#include <stdio.h>
// clang-format off
#ifdef WAPP_PLATFORM_WINDOWS
#define wapp_shell_utils_popen _popen
#define wapp_shell_utils_popen _popen
#define wapp_shell_utils_pclose _pclose
#else
#define wapp_shell_utils_popen popen
#define wapp_shell_utils_popen popen
#define wapp_shell_utils_pclose pclose
#endif /* ifdef WAPP_PLATFORM_WINDOWS */
// clang-format on
#endif // !SHELL_UTILS_H