mirror of
https://github.com/fltk/fltk.git
synced 2026-05-10 05:27:55 +08:00
Fix compilation error with Visual Studio 2022
This old code (unchanged since 1998) wouldn't compile with the current
version of Visual Studio 2022.
Fix backported from 1.4.0 (c4bb4e192e).
Original commit by Matthias Melcher.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
CHANGES IN FLTK 1.3.9 RELEASED: ???
|
||||
CHANGES IN FLTK 1.3.9 RELEASED: Nov ?? 2022
|
||||
|
||||
FLTK 1.3.9 is a maintenance release with some fixes and enhancements.
|
||||
|
||||
@@ -7,6 +7,8 @@ Details:
|
||||
Albrecht Schlosser:
|
||||
Backport X11 INCR protocol fixes from 1.4.0 (issue #451)
|
||||
X11: Suppress compiler warnings when using gcc or clang
|
||||
Fix crash if a program exits before it opens a window (STR 3484).
|
||||
Fix compilation error with current Visual Studio 2022
|
||||
|
||||
ManoloFLTK:
|
||||
macOS platform: fix for issue #325 Disabling IM disables Greek and Cyrillic layouts
|
||||
@@ -14,6 +16,7 @@ Details:
|
||||
Fix for issue #373 apparent with macOS platform and SDK ≤ 10.13
|
||||
Fi xfor issue #452: Fl::get_font_name failure on OS-X.
|
||||
Fix for issue #454 : crash in Fl::get_font_name().
|
||||
Issue #469: Fl_Sys_Menu_Bar menu item shortcuts using Escape or Tab do not work on Mac
|
||||
|
||||
YX:
|
||||
Fix IME problem (issue #270)
|
||||
|
||||
+4
-4
@@ -16,10 +16,6 @@
|
||||
// http://www.fltk.org/str.php
|
||||
//
|
||||
|
||||
#define W1 (big ? 60 : 40)
|
||||
#define B 0
|
||||
#define W3 (5*W1+6*B)
|
||||
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Double_Window.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
@@ -27,6 +23,10 @@
|
||||
#include <FL/fl_draw.H>
|
||||
#include <FL/fl_message.H>
|
||||
|
||||
#define W1 (big ? 60 : 40)
|
||||
#define B 0
|
||||
#define W3 (5*W1+6*B)
|
||||
|
||||
Fl_Double_Window *window;
|
||||
Fl_Box *box;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user