From ed694ec61f6bc7ddd7165b36d568a08d63427f55 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 6 Nov 2018 23:45:50 +0300 Subject: [PATCH] close_code.h: #error if included without matching begin_code.h --- include/close_code.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/close_code.h b/include/close_code.h index b3b70a4c833d8..f1fea37d1634a 100644 --- a/include/close_code.h +++ b/include/close_code.h @@ -26,6 +26,9 @@ * after you finish any function and structure declarations in your headers */ +#ifndef _begin_code_h +#error close_code.h included without matching begin_code.h +#endif #undef _begin_code_h /* Reset structure packing at previous byte alignment */