// vim:fileencoding=utf-8:foldmethod=marker

#ifndef SHELL_UTILS_H
#define SHELL_UTILS_H

#include "../../../common/aliases/aliases.h"
#include "../../../common/platform/platform.h"
#include <stdio.h>

#ifdef WP_PLATFORM_CPP
BEGIN_C_LINKAGE
#endif // !WP_PLATFORM_CPP

#ifdef WP_PLATFORM_WINDOWS
	#define wpShellUtilsPopen  _popen
	#define wpShellUtilsPclose _pclose
#else
	#define wpShellUtilsPopen  popen
	#define wpShellUtilsPclose pclose
#endif /* ifdef WP_PLATFORM_WINDOWS */

#ifdef WP_PLATFORM_CPP
END_C_LINKAGE
#endif // !WP_PLATFORM_CPP

#endif // !SHELL_UTILS_H
