From df05be8fbbe8b899e09c7814521fe87068f798e4 Mon Sep 17 00:00:00 2001 From: kenorb Date: Tue, 23 Apr 2024 23:36:44 +0100 Subject: [PATCH] Fixes compilation errors on build 4275 --- Indicator.define.h | 3 +++ Order.mqh | 1 + Terminal.define.h | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Indicator.define.h b/Indicator.define.h index a61dd3e29..8cb8c3086 100644 --- a/Indicator.define.h +++ b/Indicator.define.h @@ -25,6 +25,9 @@ * Includes Indicator's defines. */ +// Includes. +#include "Terminal.define.h" + #ifndef __MQL__ // Allows the preprocessor to include a header file when it is needed. #pragma once diff --git a/Order.mqh b/Order.mqh index d2ed01783..a06a2475d 100644 --- a/Order.mqh +++ b/Order.mqh @@ -44,6 +44,7 @@ #include "Std.h" #include "String.mqh" #include "SymbolInfo.mqh" +#include "Terminal.define.h" /* Defines for backward compatibility. */ diff --git a/Terminal.define.h b/Terminal.define.h index 99e3a6b4b..a1bbda2d1 100644 --- a/Terminal.define.h +++ b/Terminal.define.h @@ -182,11 +182,11 @@ #ifndef __MQL5__ #define ERR_USER_ARRAY_IS_EMPTY 1 +#endif +#define ERR_USER_INVALID_ARG 2 #define ERR_USER_INVALID_BUFF_NUM 3 #define ERR_USER_INVALID_HANDLE 4 #define ERR_USER_ITEM_NOT_FOUND 5 -#endif -#define ERR_USER_INVALID_ARG 2 #define ERR_USER_NOT_SUPPORTED 6 #define ERR_USER_ERROR_FIRST 65536 // User defined errors start with this code.