sim: lm32: reduce -Wno-error scope
[binutils-gdb.git] / sim / lm32 / user.c
index 1a36f02669731a8f89c5808a44113bffbeb75167..1e7bb71515bc00c2f21a62766d0c4f49f6b35bff 100644 (file)
@@ -1,7 +1,7 @@
 /* Semantics for user defined instructions on the Lattice Mico32.
    Contributed by Jon Beniston <jon@beniston.com>
 
-   Copyright (C) 2009-2019 Free Software Foundation, Inc.
+   Copyright (C) 2009-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -18,6 +18,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+/* This must come before any other includes.  */
+#include "defs.h"
+
 #include "sim-main.h"
 
 /* Handle user defined instructions.  */