GTK+ 3.6.4 not working for vc 2010 because of inline
- From: jack zhu <jack0zhu gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GTK+ 3.6.4 not working for vc 2010 because of inline
- Date: Sun, 17 Nov 2013 16:48:14 +0800
Issue:
The application works fine for GTK2 and have issue for GTK3。Most caused by
improper inline macro defination.
Solution:
1 /Dinline= not working as in link stage, some wield string function
redefination reports
2 after some dig, replace inline region defined in glibconfig.h from gtk2
is working for the compilation process. Below is the regions:
//hack,use gtk2 header
#if 0 //hack
#ifdef __cplusplus
#define G_HAVE_INLINE 1
#else /* !__cplusplus */
#define G_HAVE_INLINE 1
#define G_HAVE___INLINE 1
#define G_HAVE___INLINE__ 1
#endif /* !__cplusplus */
#ifdef __cplusplus
#define G_CAN_INLINE 1
#else /* !__cplusplus */
#define G_CAN_INLINE 1
#endif
#else //hack
#ifdef __cplusplus
#define G_HAVE_INLINE 1
#else /* !__cplusplus */
#ifndef _MSC_VER
#define G_HAVE_INLINE 1
#endif /* _MSC_VER */
#define G_HAVE___INLINE 1
#if !defined(_MSC_VER) && !defined(__DMC__)
#define G_HAVE___INLINE__ 1
#endif /* !_MSC_VER and !__DMC__ */
#endif /* !__cplusplus */
#define G_CAN_INLINE 1
#endif //end of hack
Question:
The gtk3 part doesnot seems to work for visual c++. So does anything go
wrong for the above part from GTK2 to GTK3.
Regards,
Jack Zhu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]