qulogic/libgnt

Parents 317bcdc00a19
Children 96e325d99c57
Fix all the remaining files for which internal.h doesn't end up being the first include.

This should resolve the warnings on Solaris as reported by aab. Closes #10523.
  • +2 -4
    gntutils.c
  • +2 -2
    wms/s.c
  • --- a/gntutils.c Fri Nov 20 21:48:29 2009 +0000
    +++ b/gntutils.c Tue Dec 08 04:18:32 2009 +0000
    @@ -20,6 +20,8 @@
    * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
    */
    +#include "config.h"
    +
    #include "gntinternal.h"
    #undef GNT_LOG_DOMAIN
    #define GNT_LOG_DOMAIN "Utils"
    @@ -35,8 +37,6 @@
    #include "gntutils.h"
    #include "gntwindow.h"
    -#include "config.h"
    -
    #include <stdarg.h>
    #include <stdlib.h>
    #include <string.h>
    @@ -46,8 +46,6 @@
    #include <libxml/tree.h>
    #endif
    -#include "config.h"
    -
    void gnt_util_get_text_bound(const char *text, int *width, int *height)
    {
    const char *s = text, *last;
    --- a/wms/s.c Fri Nov 20 21:48:29 2009 +0000
    +++ b/wms/s.c Tue Dec 08 04:18:32 2009 +0000
    @@ -1,8 +1,8 @@
    +#include "internal.h"
    +
    #include <string.h>
    #include <sys/types.h>
    -#include "internal.h"
    -
    #include "gnt.h"
    #include "gntbox.h"
    #include "gntmenu.h"