Hi,

I noticed that I stepped through code meant for OSX when debugging on win32. This doesn't seem to cause any real problems, but the attached patch fixes this by changing uses of #ifdef to #if.

Cheers,

John
Index: include/Platform.h
===================================================================
--- include/Platform.h  (revision 15760)
+++ include/Platform.h  (working copy)
@@ -368,19 +368,19 @@
 class Window {
 protected:
        WindowID id;
-#ifdef PLAT_MACOSX
+#if PLAT_MACOSX
        void *windowRef;
        void *control;
 #endif
 public:
        Window() : id(0), cursorLast(cursorInvalid) {
-#ifdef PLAT_MACOSX
+#if PLAT_MACOSX
          windowRef = 0;
          control = 0;
 #endif
        }
        Window(const Window &source) : id(source.id), cursorLast(cursorInvalid) 
{
-#ifdef PLAT_MACOSX
+#if PLAT_MACOSX
          windowRef = 0;
          control = 0;
 #endif
@@ -405,7 +405,7 @@
        enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, 
cursorWait, cursorHoriz, cursorVert, cursorReverseArrow, cursorHand };
        void SetCursor(Cursor curs);
        void SetTitle(const char *s);
-#ifdef PLAT_MACOSX
+#if PLAT_MACOSX
        void SetWindow(void *ref) { windowRef = ref; };
        void SetControl(void *_control) { control = _control; };
 #endif
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to