[glib] gobject/gvaluetransform.c: Cleanup #ifndef _MSC_VER
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject/gvaluetransform.c: Cleanup #ifndef _MSC_VER
- Date: Tue, 29 Oct 2013 04:46:42 +0000 (UTC)
commit e08ef9c367c4ad7c7d18b33b26465e8afbc895f3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Oct 29 12:46:32 2013 +0800
gobject/gvaluetransform.c: Cleanup #ifndef _MSC_VER
The two casts that were unsupported with Visual Studio is now properly
supported, so build this code like how the other compilers build the code.
gobject/gvaluetransform.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gobject/gvaluetransform.c b/gobject/gvaluetransform.c
index 054250c..119f854 100644
--- a/gobject/gvaluetransform.c
+++ b/gobject/gvaluetransform.c
@@ -368,11 +368,8 @@ _g_value_transforms_init (void)
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_UINT64,
value_transform_uint64_uint64);
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_ENUM, value_transform_uint64_long);
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_FLAGS,
value_transform_uint64_ulong);
-#ifndef _MSC_VER
- /* required casts unsupported with msvc 5.0 */
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_FLOAT,
value_transform_uint64_float);
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_DOUBLE,
value_transform_uint64_double);
-#endif
g_value_register_transform_func (G_TYPE_UINT64, G_TYPE_STRING,
value_transform_uint64_string);
g_value_register_transform_func (G_TYPE_ENUM, G_TYPE_CHAR, value_transform_long_s8);
g_value_register_transform_func (G_TYPE_ENUM, G_TYPE_UCHAR, value_transform_long_u8);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]