Add shell_utils
This commit is contained in:
parent
4fc99f76a5
commit
7c4725edef
16
src/common/shell/utils/shell_utils.h
Normal file
16
src/common/shell/utils/shell_utils.h
Normal 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
|
Loading…
Reference in New Issue
Block a user