src: include primary header first

This is a common practice in C projects, which simply enforces that
each header must compile cleanly without implicit dependencies on
other headers (see also the previous commit).
This commit is contained in:
John Lindgren 2025-07-28 01:02:01 -04:00 committed by Johan Malm
parent c9b576982d
commit 31d42b50e2
74 changed files with 74 additions and 72 deletions

View file

@ -11,6 +11,7 @@
* Adapted for labwc by John Lindgren, 2024
*/
#include "img/img-xpm.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
@ -21,7 +22,6 @@
#include "common/buf.h"
#include "common/graphic-helpers.h"
#include "common/mem.h"
#include "img/img-xpm.h"
enum buf_op { op_header, op_cmap, op_body };