After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309462 - imime.c: G_BEGIN_DECLS is not defined.
imime.c: G_BEGIN_DECLS is not defined.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Input Methods
2.7.x
Other All
: Normal normal
: ---
Assigned To: Hidetoshi Tajima
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-07-04 17:59 UTC by Kazuki Iwamoto
Modified: 2005-07-06 00:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for add #include "gtk/gtkintl.h" (317 bytes, patch)
2005-07-04 18:01 UTC, Kazuki Iwamoto
none Details | Review

Description Kazuki Iwamoto 2005-07-04 17:59:01 UTC
Please describe the problem:
When imime.c is compiled, G_BEGIN_DECLS is used in gtk/gtkimmodule.h before defined.
So gtk/gtkintl.h should be included like other im*.c files.

Steps to reproduce:
1. compile imime.c


Actual results:
Following message is displayed. (Visual C++ 6.0)
cairo.h(67) : error C2054: expected '(' to follow 'G_BEGIN_DECLS'
cairo.h(67) : error C2085: 'cairo_bool_t' : not in formal parameter list
cairo.h(75) : error C2085: 'cairo_t' : not in formal parameter list
cairo.h(89) : error C2085: 'cairo_surface_t' : not in formal parameter list
cairo.h(101) : error C2085: 'cairo_matrix_t' : not in formal parameter list
(((many errors occurred)))
cairo.h(329) : error C2059: syntax error : 'type'
cairo.h(329) : error C2059: syntax error : ')'
cairo.h(332) : error C2143: syntax error : missing ')' before '*'
cairo.h(332) : error C2143: syntax error : missing '{' before '*'
cairo.h(332) : error C2059: syntax error : 'type'
cairo.h(332) : fatal error C1003: error count exceeds 100; stopping compilation

Expected results:
Add #include "gtk/gtkintl.h".

Does this happen every time?
every time

Other information:
Comment 1 Kazuki Iwamoto 2005-07-04 18:01:22 UTC
Created attachment 48636 [details] [review]
patch for add #include "gtk/gtkintl.h"
Comment 2 Matthias Clasen 2005-07-06 00:31:58 UTC
2005-07-05  Matthias Clasen  <mclasen@redhat.com>

        * modules/input/imime.c: Fix includes.  (#309462, Kazuki IWAMOTO)