Branch: refs/heads/master Author: Dimitar Zhekov dimitar.zhekov@gmail.com Committer: Dimitar Zhekov dimitar.zhekov@gmail.com Date: Sun, 05 Apr 2015 15:43:11 UTC Commit: e838ef744b930695a913aabbc0a82a92b3378aa8 https://github.com/geany/geany/commit/e838ef744b930695a913aabbc0a82a92b3378a...
Log Message: ----------- Define the WIF* and WEXITSTATUS macros in spawn.h under all OS
In particular, include <sys/types.h> and <sys/wait.h> under Unix.
Modified Paths: -------------- src/spawn.h
Modified: src/spawn.h 15 lines changed, 9 insertions(+), 6 deletions(-) =================================================================== @@ -24,6 +24,15 @@
#include <glib.h>
+#ifdef G_OS_WIN32 +# define WIFEXITED(status) TRUE +# define WEXITSTATUS(status) (status) +# define WIFSIGNALLED(status) FALSE +#else +# include <sys/types.h> +# include <sys/wait.h> +#endif + gchar *spawn_get_program_name(const gchar *command_line, GError **error);
gboolean spawn_check_command(const gchar *command_line, gboolean execute, GError **error); @@ -95,10 +104,4 @@ gboolean spawn_sync(const gchar *working_directory, const gchar *command_line, g gchar **envp, SpawnWriteData *stdin_data, GString *stdout_data, GString *stderr_data, gint *exit_status, GError **error);
-#ifdef G_OS_WIN32 -#define WIFEXITED(status) TRUE -#define WEXITSTATUS(status) (status) -#define WIFSIGNALLED(status) FALSE -#endif /* G_OS_WIN32 */ - #endif /* GEANY_SPAWN_H */
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).