Add shell_utils

This commit is contained in:
abdelrahman committed 2024-06-16 23:18:52 +01:00
1 parent 4fc99f76a5
commit 7c4725edef
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
#ifndef SHELL_UTILS_H
#define SHELL_UTILS_H
#include "platform.h"
// clang-format off
#ifdef WAPP_PLATFORM_WINDOWS
#define wapp_shell_utils_popen _popen
#define wapp_shell_utils_pclose _pclose
#else
#define wapp_shell_utils_popen popen
#define wapp_shell_utils_pclose pclose
#endif /* ifdef WAPP_PLATFORM_WINDOWS */
// clang-format on
#endif // !SHELL_UTILS_H