g_locale_to_utf8
g_log
g_log_default_handler
+ g_log_domain_glib
g_log_remove_handler
g_log_set_always_fatal
g_log_set_fatal_mask
#include <gtypes.h>
#include <gunicode.h>
#include <gutils.h>
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
#include <gwin32.h>
#endif
g_locale_to_utf8
g_log
g_log_default_handler
+ g_log_domain_glib
g_log_remove_handler
g_log_set_always_fatal
g_log_set_fatal_mask
#include <gtypes.h>
#include <gunicode.h>
#include <gutils.h>
-#ifdef G_OS_WIN32
+#ifdef G_PLATFORM_WIN32
#include <gwin32.h>
#endif
#include <gerror.h>
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+G_BEGIN_DECLS
typedef enum
{
gchar* g_markup_escape_text (const gchar *text,
gint length);
-
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* __G_MARKUP_H__ */
#ifdef G_OS_WIN32
# define STRICT
# include <windows.h>
+# undef STRICT
# include <process.h> /* For _getpid() */
static gboolean alloc_console_called = FALSE;
/* Logging mechanism
*/
-extern const gchar *g_log_domain_glib;
+GLIB_VAR const gchar *g_log_domain_glib;
guint g_log_set_handler (const gchar *log_domain,
GLogLevelFlags log_levels,
GLogFunc log_func,
* Otherwise double quotes preserve things literally.
*/
-gboolean
+static gboolean
unquote_string_inplace (gchar* str, gchar** end, GError** err)
{
gchar* dest;
* Boston, MA 02111-1307, USA.
*/
+#undef G_LOG_DOMAIN
+#include "glib.h"
#define GSPAWN_HELPER
#include "gspawn-win32.c" /* For shared definitions */
#ifdef HAVE_STRSIGNAL
#if defined(G_OS_BEOS) || defined(G_WITH_CYGWIN)
-extern const char * strsignal(int);
-#else /* !G_OS_BEOS */
+extern const char *strsignal(int);
+#else
/* this is declared differently (const) in string.h on BeOS */
extern char *strsignal (int sig);
-#endif /* !G_OS_BEOS */
+#endif /* !G_OS_BEOS && !G_WITH_CYGWIN */
return strsignal (signum);
#elif NO_SYS_SIGLIST
switch (signum)
gboolean g_thread_use_default_impl = TRUE;
gboolean g_threads_got_initialized = FALSE;
-#if defined(G_OS_WIN32) && defined(__GNUC__)
+#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
__declspec(dllexport)
#endif
GThreadFunctions g_thread_functions_for_glib_use = {
#include <gerror.h>
-#ifdef __cplusplus
-extern "C"
-{
-#endif
+G_BEGIN_DECLS
typedef enum
{
gchar* g_markup_escape_text (const gchar *text,
gint length);
-
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* __G_MARKUP_H__ */
#ifdef G_OS_WIN32
# define STRICT
# include <windows.h>
+# undef STRICT
# include <process.h> /* For _getpid() */
static gboolean alloc_console_called = FALSE;
/* Logging mechanism
*/
-extern const gchar *g_log_domain_glib;
+GLIB_VAR const gchar *g_log_domain_glib;
guint g_log_set_handler (const gchar *log_domain,
GLogLevelFlags log_levels,
GLogFunc log_func,
* Otherwise double quotes preserve things literally.
*/
-gboolean
+static gboolean
unquote_string_inplace (gchar* str, gchar** end, GError** err)
{
gchar* dest;
* Boston, MA 02111-1307, USA.
*/
+#undef G_LOG_DOMAIN
+#include "glib.h"
#define GSPAWN_HELPER
#include "gspawn-win32.c" /* For shared definitions */
#ifdef HAVE_STRSIGNAL
#if defined(G_OS_BEOS) || defined(G_WITH_CYGWIN)
-extern const char * strsignal(int);
-#else /* !G_OS_BEOS */
+extern const char *strsignal(int);
+#else
/* this is declared differently (const) in string.h on BeOS */
extern char *strsignal (int sig);
-#endif /* !G_OS_BEOS */
+#endif /* !G_OS_BEOS && !G_WITH_CYGWIN */
return strsignal (signum);
#elif NO_SYS_SIGLIST
switch (signum)
gboolean g_thread_use_default_impl = TRUE;
gboolean g_threads_got_initialized = FALSE;
-#if defined(G_OS_WIN32) && defined(__GNUC__)
+#if defined(G_PLATFORM_WIN32) && defined(__GNUC__)
__declspec(dllexport)
#endif
GThreadFunctions g_thread_functions_for_glib_use = {