make it possible to disable single-file includes by defining
[platform/upstream/glib.git] / glib / gspawn.h
index 9ca1879..1cb5783 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_SPAWN_H__
 #define __G_SPAWN_H__
 
@@ -71,6 +75,14 @@ typedef enum
 
 GQuark g_spawn_error_quark (void);
 
+#ifdef G_OS_WIN32
+#define g_spawn_async g_spawn_async_utf8
+#define g_spawn_async_with_pipes g_spawn_async_with_pipes_utf8
+#define g_spawn_sync g_spawn_sync_utf8
+#define g_spawn_command_line_sync g_spawn_command_line_sync_utf8
+#define g_spawn_command_line_async g_spawn_command_line_async_utf8
+#endif
+
 gboolean g_spawn_async (const gchar           *working_directory,
                         gchar                **argv,
                         gchar                **envp,
@@ -122,9 +134,6 @@ gboolean g_spawn_command_line_async (const gchar          *command_line,
 
 void g_spawn_close_pid (GPid pid);
 
-
 G_END_DECLS
 
 #endif /* __G_SPAWN_H__ */
-
-