summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Urbanec <git.user@urbanec.net>2015-02-27 01:16:58 +1100
committerTim-Philipp Müller <tim@centricular.com>2015-03-05 17:53:16 +0000
commit6cbe86dc589d381a324a05c522096c38f73608a1 (patch)
treedddbedb52140701220f490356dbd33160dc57ad3
parent7b48b7a5bcf91bac4ce61c8f352003927098dc04 (diff)
info: shorten __FILE__ on all platforms
This is useful not only for MSVC, but also with gcc/Linux when doing cross-compilation builds and out-of-tree builds. https://bugzilla.gnome.org/show_bug.cgi?id=745213
-rw-r--r--gst/gstinfo.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index b2a3005a9..f94578657 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -444,7 +444,6 @@ gst_debug_log (GstDebugCategory * category, GstDebugLevel level,
va_end (var_args);
}
-#ifdef G_OS_WIN32
/* based on g_basename(), which we can't use because it was deprecated */
static inline const gchar *
gst_path_basename (const gchar * file_name)
@@ -467,7 +466,6 @@ gst_path_basename (const gchar * file_name)
return file_name;
}
-#endif
/**
* gst_debug_log_valist:
@@ -500,9 +498,7 @@ gst_debug_log_valist (GstDebugCategory * category, GstDebugLevel level,
/* The predefined macro __FILE__ is always the exact path given to the
* compiler with MSVC, which may or may not be the basename. We work
* around it at runtime to improve the readability. */
-#ifdef G_OS_WIN32
file = gst_path_basename (file);
-#endif
message.message = NULL;
message.format = format;