Fixed VC++.NET project files (FLTK, FLTKDLL, FLUID).
Fixed Cygwin FLUID compile problem (STR #772) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
f5ed012b28
commit
f6a137b998
@ -46,7 +46,7 @@
|
|||||||
#include "alignment_panel.h"
|
#include "alignment_panel.h"
|
||||||
#include "function_panel.h"
|
#include "function_panel.h"
|
||||||
#include "template_panel.h"
|
#include "template_panel.h"
|
||||||
#ifndef WIN32
|
#if !defined(WIN32) || defined(__CYGWIN__)
|
||||||
# include "print_panel.h"
|
# include "print_panel.h"
|
||||||
#endif // !WIN32
|
#endif // !WIN32
|
||||||
|
|
||||||
@ -251,7 +251,11 @@ void save_template_cb(Fl_Widget *, void *) {
|
|||||||
fluid_prefs.getUserdataPath(filename, sizeof(filename));
|
fluid_prefs.getUserdataPath(filename, sizeof(filename));
|
||||||
|
|
||||||
strlcat(filename, "templates", sizeof(filename));
|
strlcat(filename, "templates", sizeof(filename));
|
||||||
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
|
if (access(filename, 0)) mkdir(filename);
|
||||||
|
#else
|
||||||
if (access(filename, 0)) mkdir(filename, 0777);
|
if (access(filename, 0)) mkdir(filename, 0777);
|
||||||
|
#endif // WIN32 && !__CYGWIN__
|
||||||
|
|
||||||
strlcat(filename, "/", sizeof(filename));
|
strlcat(filename, "/", sizeof(filename));
|
||||||
strlcat(filename, safename, sizeof(filename));
|
strlcat(filename, safename, sizeof(filename));
|
||||||
@ -848,7 +852,7 @@ void manual_cb(Fl_Widget *, void *) {
|
|||||||
|
|
||||||
// Load and show the print dialog...
|
// Load and show the print dialog...
|
||||||
void print_menu_cb(Fl_Widget *, void *) {
|
void print_menu_cb(Fl_Widget *, void *) {
|
||||||
#ifdef WIN32
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
fl_message("Sorry, printing is not yet implemented on Windows...");
|
fl_message("Sorry, printing is not yet implemented on Windows...");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
@ -1300,7 +1304,7 @@ void print_cb(Fl_Return_Button *, void *) {
|
|||||||
print_progress->hide();
|
print_progress->hide();
|
||||||
print_panel->hide();
|
print_panel->hide();
|
||||||
}
|
}
|
||||||
#endif // WIN32
|
#endif // WIN32 && !__CYGWIN__
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
@ -36,11 +36,11 @@
|
|||||||
#include <FL/fl_ask.H>
|
#include <FL/fl_ask.H>
|
||||||
#include <FL/Fl_Shared_Image.H>
|
#include <FL/Fl_Shared_Image.H>
|
||||||
#include <FL/Fl_Preferences.H>
|
#include <FL/Fl_Preferences.H>
|
||||||
#ifdef WIN32
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif // WIN32
|
#endif // WIN32 && !__CYGWIN__
|
||||||
extern Fl_Preferences fluid_prefs;
|
extern Fl_Preferences fluid_prefs;
|
||||||
|
|
||||||
Fl_Double_Window *template_panel=(Fl_Double_Window *)0;
|
Fl_Double_Window *template_panel=(Fl_Double_Window *)0;
|
||||||
|
@ -47,7 +47,7 @@ decl {\#include <FL/Fl_Shared_Image.H>} {}
|
|||||||
|
|
||||||
decl {\#include <FL/Fl_Preferences.H>} {}
|
decl {\#include <FL/Fl_Preferences.H>} {}
|
||||||
|
|
||||||
declblock {\#ifdef WIN32} {after {\#endif // WIN32}
|
declblock {\#if defined(WIN32) && !defined(__CYGWIN__)} {selected after {\#endif // WIN32 && !__CYGWIN__}
|
||||||
} {
|
} {
|
||||||
decl {\#include <io.h>} {}
|
decl {\#include <io.h>} {}
|
||||||
decl {\#else} {}
|
decl {\#else} {}
|
||||||
@ -115,7 +115,7 @@ img = Fl_Shared_Image::get(pngfile);
|
|||||||
if (img) {
|
if (img) {
|
||||||
template_preview->image(img);
|
template_preview->image(img);
|
||||||
template_preview->redraw();
|
template_preview->redraw();
|
||||||
}} selected
|
}}
|
||||||
xywh {10 28 180 250} type Hold labelfont 1 align 5 when 3
|
xywh {10 28 180 250} type Hold labelfont 1 align 5 when 3
|
||||||
}
|
}
|
||||||
Fl_Box template_preview {
|
Fl_Box template_preview {
|
||||||
|
@ -1732,6 +1732,9 @@
|
|||||||
PreprocessorDefinitions=""/>
|
PreprocessorDefinitions=""/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\fl_read_image.cxx">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\fl_rect.cxx">
|
RelativePath="..\src\fl_rect.cxx">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
|
@ -1781,6 +1781,9 @@
|
|||||||
PreprocessorDefinitions="FL_DLL;FL_LIBRARY;WIN32;_DEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN;$(NoInherit)"/>
|
PreprocessorDefinitions="FL_DLL;FL_LIBRARY;WIN32;_DEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN;$(NoInherit)"/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\src\fl_read_image.cxx">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\fl_rect.cxx">
|
RelativePath="..\src\fl_rect.cxx">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
Optimization="0"
|
Optimization="0"
|
||||||
AdditionalIncludeDirectories=".,.."
|
AdditionalIncludeDirectories=".,..,..\zlib,..\png"
|
||||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN"
|
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN"
|
||||||
RuntimeLibrary="3"
|
RuntimeLibrary="3"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
@ -87,7 +87,7 @@
|
|||||||
InlineFunctionExpansion="2"
|
InlineFunctionExpansion="2"
|
||||||
ImproveFloatingPointConsistency="TRUE"
|
ImproveFloatingPointConsistency="TRUE"
|
||||||
FavorSizeOrSpeed="0"
|
FavorSizeOrSpeed="0"
|
||||||
AdditionalIncludeDirectories=".,.."
|
AdditionalIncludeDirectories=".,..,..\zlib,..\png"
|
||||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN"
|
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;WIN32_LEAN_AND_MEAN;VC_EXTRA_LEAN;WIN32_EXTRA_LEAN"
|
||||||
RuntimeLibrary="2"
|
RuntimeLibrary="2"
|
||||||
UsePrecompiledHeader="2"
|
UsePrecompiledHeader="2"
|
||||||
@ -219,6 +219,25 @@
|
|||||||
PreprocessorDefinitions=""/>
|
PreprocessorDefinitions=""/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\fluid\CodeEditor.cxx">
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Debug|Win32">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=""
|
||||||
|
PreprocessorDefinitions=""/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
FavorSizeOrSpeed="0"
|
||||||
|
AdditionalIncludeDirectories=""
|
||||||
|
PreprocessorDefinitions=""/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\fluid\factory.cxx">
|
RelativePath="..\fluid\factory.cxx">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
@ -428,6 +447,9 @@
|
|||||||
PreprocessorDefinitions=""/>
|
PreprocessorDefinitions=""/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\fluid\template_panel.cxx">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\fluid\undo.cxx">
|
RelativePath="..\fluid\undo.cxx">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
@ -466,25 +488,6 @@
|
|||||||
PreprocessorDefinitions=""/>
|
PreprocessorDefinitions=""/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath="..\fluid\CodeEditor.cxx">
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
Optimization="0"
|
|
||||||
AdditionalIncludeDirectories=""
|
|
||||||
PreprocessorDefinitions=""/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32">
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
FavorSizeOrSpeed="0"
|
|
||||||
AdditionalIncludeDirectories=""
|
|
||||||
PreprocessorDefinitions=""/>
|
|
||||||
</FileConfiguration>
|
|
||||||
</File>
|
|
||||||
</Files>
|
</Files>
|
||||||
<Globals>
|
<Globals>
|
||||||
</Globals>
|
</Globals>
|
||||||
|
Loading…
Reference in New Issue
Block a user