From 35a4a073205131c66f1a1cb7f53afdeae3fa3ba8 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 18 Apr 2018 20:43:28 -0400 Subject: [PATCH] fix include definition errors --- atom/common/common_message_generator.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/atom/common/common_message_generator.cc b/atom/common/common_message_generator.cc index 4358a4931702..09f5bdcfb029 100644 --- a/atom/common/common_message_generator.cc +++ b/atom/common/common_message_generator.cc @@ -7,13 +7,17 @@ #include "atom/common/common_message_generator.h" // Generate constructors. -#include "atom/common/common_message_generator.h" #include "ipc/struct_constructor_macros.h" -// Generate destructors. +// must go after struct_contructor_macros #include "atom/common/common_message_generator.h" + +// Generate destructors. #include "ipc/struct_destructor_macros.h" +// must go after struct_destructor_macros +#include "atom/common/common_message_generator.h" + // Generate param traits write methods. #include "ipc/param_traits_write_macros.h" namespace IPC { @@ -30,4 +34,4 @@ namespace IPC { #include "ipc/param_traits_log_macros.h" namespace IPC { #include "atom/common/common_message_generator.h" -} // namespace IPC +} // namespace IPC \ No newline at end of file