fix problems with recursive beremiz.h inclusion
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Sat, 12 Jan 2019 15:02:17 +0300
changeset 2504 f3aced6c5f8b
parent 2503 6ffeffb6d635
child 2505 3487fd4fb9bf
fix problems with recursive beremiz.h inclusion
targets/beremiz.h
--- a/targets/beremiz.h	Sat Jan 12 13:57:16 2019 +0300
+++ b/targets/beremiz.h	Sat Jan 12 15:02:17 2019 +0300
@@ -1,3 +1,6 @@
+#ifndef _BEREMIZ_H_
+#define _BEREMIZ_H_
+
 /* Beremiz' header file for use by extensions */
 
 #include "iec_types.h"
@@ -24,3 +27,4 @@
 
 long AtomicCompareExchange(long* atomicvar,long compared, long exchange);
 
+#endif