aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Scintilla.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-06-17 16:13:41 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2014-06-17 16:13:41 +1000
commit3dc89f45b10005143af1b26897ab6d04af2cb3ba (patch)
tree29a5da5be8f3e507d6c2fa171514520e635f8e12 /include/Scintilla.h
parent965be94d105fa34ab46791e5fa45bc5bf2896d68 (diff)
downloadscintilla-mirror-3dc89f45b10005143af1b26897ab6d04af2cb3ba.tar.gz
Only define namespaces when compiling as C++.
Diffstat (limited to 'include/Scintilla.h')
-rw-r--r--include/Scintilla.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 9bb0ca905..93992e28f 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -1021,7 +1021,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
* CHARRANGE, TEXTRANGE, FINDTEXTEX, FORMATRANGE, and NMHDR structs.
* So older code that treats Scintilla as a RichEdit will work. */
-#ifdef SCI_NAMESPACE
+#if defined(__cplusplus) && defined(SCI_NAMESPACE)
namespace Scintilla {
#endif
@@ -1113,7 +1113,7 @@ struct SCNotification {
int updated; /* SCN_UPDATEUI */
};
-#ifdef SCI_NAMESPACE
+#if defined(__cplusplus) && defined(SCI_NAMESPACE)
}
#endif