* src/dynlib.c, src/emacs-module.c: Include <config.h> first.
* src/dynlib.h: Do not include config.h.
It’s every .c file’s responsibility to include config.h first.
* src/emacs-module.c: Include emacs-module.h immediately after
config.h, to test that emacs-module.h doesn’t depend on
include files other than config.h.
If you think the abstraction is too leaky use libltdl (libtool),
don't reinvent the wheel by fixing this one. */
+#include <config.h>
+
#include "dynlib.h"
#if defined _WIN32
#ifndef DYNLIB_H
#define DYNLIB_H
-#include <config.h>
#include <stdbool.h>
typedef void *dynlib_handle_ptr;
You should have received a copy of the GNU General Public License
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
+#include <config.h>
+
+#include "emacs-module.h"
+
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
-#include <config.h>
#include "lisp.h"
-#include "emacs-module.h"
#include "dynlib.h"
#include "coding.h"
#include "verify.h"