diff --git a/app/src/command.h b/app/src/command.h index 98b3a881..6264adf4 100644 --- a/app/src/command.h +++ b/app/src/command.h @@ -3,33 +3,33 @@ #include #include -#include -// #ifdef _WIN32 + +# include // not needed here, but must never be included AFTER windows.h +# include # define PRIexitcode "lu" +// # ifdef _WIN64 # define PRIsizet PRIu64 # else # define PRIsizet PRIu32 # endif -#else -# define PRIsizet "zu" -# define PRIexitcode "d" -#endif - -#ifdef __WINDOWS__ -# include // not needed here, but must never be included AFTER windows.h -# include # define PROCESS_NONE NULL typedef HANDLE process_t; typedef DWORD exit_code_t; + #else + # include +# define PRIsizet "zu" +# define PRIexitcode "d" # define PROCESS_NONE -1 typedef pid_t process_t; typedef int exit_code_t; + #endif + # define NO_EXIT_CODE -1 enum process_result {