From 90ff87db7b368addb01191205570ba71054986e7 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 2 May 2020 08:17:23 +1000 Subject: Backport: Allow disabling automatically generated #define constants. This is for applications that want access to the structures and function definitions but define constants with enum or constexpr. Backport of changeset 8224:89f7a797f5a5. --- include/Scintilla.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/Scintilla.h b/include/Scintilla.h index c2d289bab..f709b1534 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -38,6 +38,8 @@ typedef intptr_t sptr_t; typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); +#ifndef SCI_DISABLE_AUTOGENERATED + /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ #define INVALID_POSITION -1 #define SCI_START 2000 @@ -1151,6 +1153,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #endif /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ +#endif + /* These structures are defined to be exactly the same shape as the Win32 * CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs. * So older code that treats Scintilla as a RichEdit will work. */ -- cgit v1.2.3