From: handa Date: Mon, 31 May 2004 11:28:12 +0000 (+0000) Subject: Include only when HAVE_DLFCN_H is defined. X-Git-Tag: withdl~135 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d29804b2079a52c938c4fc15c62b435aa19ead0;p=m17n%2Fm17n-lib.git Include only when HAVE_DLFCN_H is defined. --- diff --git a/src/input.c b/src/input.c index 270924e..63e8843 100644 --- a/src/input.c +++ b/src/input.c @@ -141,9 +141,13 @@ #include #include -#include #include "config.h" + +#ifdef HAVE_DLFCN_H +#include +#endif + #include "m17n-gui.h" #include "m17n-misc.h" #include "internal.h" diff --git a/src/m17n-gui.c b/src/m17n-gui.c index a3f5620..854098a 100644 --- a/src/m17n-gui.c +++ b/src/m17n-gui.c @@ -64,9 +64,12 @@ #include #include #include -#include #include "config.h" +#ifdef HAVE_DLFCN_H +#include +#endif + #include "m17n-gui.h" #include "m17n-misc.h" #include "internal.h" @@ -598,15 +601,15 @@ mframe (MPlist *plist) MERROR (MERROR_WIN, NULL); } + if (! mframe_default) + mframe_default = frame; + frame->face = mface (); MPLIST_DO (pl, plist) if (MPLIST_KEY (pl) == Mface) mface_merge (frame->face, (MFace *) MPLIST_VAL (pl)); mface__update_frame_face (frame); - if (! mframe_default) - mframe_default = frame; - if (plist_created) M17N_OBJECT_UNREF (plist); return frame;