summaryrefslogtreecommitdiff
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-11-20 00:40:45 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-11-20 00:41:21 -0800
commitc69cec404cbc6b1570c42ca03e0cb42b410d7690 (patch)
tree633f48cac6436a0f9c37168eb714d36719b71dfd /src/emacs-module.c
parentaa7dac899804727875cdb8fe267d37adcbe9705a (diff)
downloademacs-c69cec404cbc6b1570c42ca03e0cb42b410d7690.tar.gz
Include-file tweaks for modules
* 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.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index e885af5de8f..25c5e019881 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -17,14 +17,16 @@ GNU General Public License for more details.
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"