mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
build on windows
This commit is contained in:
parent
6884f6265e
commit
3dfa9c5a58
@ -117,6 +117,16 @@ operator < (const HTTPDate &other) const {
|
||||
return _time < other._time;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: HTTPDate::Operator >
|
||||
// Access: Published
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE bool HTTPDate::
|
||||
operator > (const HTTPDate &other) const {
|
||||
return _time > other._time;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: HTTPDate::compare_to
|
||||
// Access: Published
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include "pandabase.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : HTTPDate
|
||||
// Description : A container for an HTTP-legal time/date indication.
|
||||
@ -46,6 +48,7 @@ PUBLISHED:
|
||||
INLINE bool operator == (const HTTPDate &other) const;
|
||||
INLINE bool operator != (const HTTPDate &other) const;
|
||||
INLINE bool operator < (const HTTPDate &other) const;
|
||||
INLINE bool operator > (const HTTPDate &other) const;
|
||||
INLINE int compare_to(const HTTPDate &other) const;
|
||||
|
||||
INLINE void operator += (int seconds);
|
||||
|
@ -6,9 +6,10 @@
|
||||
#define USE_PACKAGES ssl
|
||||
|
||||
#define OTHER_LIBS \
|
||||
progbase \
|
||||
progbase pandatoolbase \
|
||||
express:c downloader:c pandaexpress:m \
|
||||
panda:m
|
||||
panda:m dtool:m dtoolconfig:m \
|
||||
pystub
|
||||
|
||||
#define SOURCES \
|
||||
backupCatalog.I backupCatalog.cxx backupCatalog.h \
|
||||
|
@ -240,7 +240,8 @@ post_command_line() {
|
||||
bool HTTPBackup::
|
||||
dispatch_url(const string &opt, const string &arg, void *var) {
|
||||
URLSpec *up = (URLSpec *)var;
|
||||
(*up) = URLSpec(arg);
|
||||
URLSpec new_url(arg);
|
||||
(*up) = new_url;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -3,8 +3,9 @@
|
||||
|
||||
#define TARGET indexify
|
||||
#define OTHER_LIBS \
|
||||
progbase \
|
||||
pnmimage:c pnmimagetypes:c panda:m \
|
||||
progbase pandatoolbase \
|
||||
pnmimage:c pnmimagetypes:c panda:m pandaexpress:m \
|
||||
dtool:m dtoolconfig:m \
|
||||
pystub
|
||||
|
||||
#define SOURCES \
|
||||
@ -25,8 +26,9 @@
|
||||
|
||||
#define TARGET font-samples
|
||||
#define OTHER_LIBS \
|
||||
progbase \
|
||||
pnmimage:c pnmimagetypes:c panda:m \
|
||||
progbase pandatoolbase \
|
||||
pnmimage:c pnmimagetypes:c panda:m pandaexpress:m \
|
||||
dtool:m dtoolconfig:m \
|
||||
pystub
|
||||
|
||||
#define SOURCES \
|
||||
|
@ -26,7 +26,7 @@
|
||||
// This is used as a standard fallback font when no font file is
|
||||
// specified by the user.
|
||||
|
||||
const char default_font[] = {
|
||||
const unsigned char default_font[] = {
|
||||
0x80, 0x01, 0x6e, 0x06, 0x00, 0x00, 0x25, 0x21, 0x50, 0x53, 0x2d,
|
||||
0x41, 0x64, 0x6f, 0x62, 0x65, 0x46, 0x6f, 0x6e, 0x74, 0x2d, 0x31,
|
||||
0x2e, 0x30, 0x3a, 0x20, 0x4e, 0x69, 0x6d, 0x62, 0x75, 0x73, 0x53,
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef DEFAULT_FONT_H
|
||||
#define DEFAULT_FONT_H
|
||||
|
||||
extern const char default_font[];
|
||||
extern const unsigned char default_font[];
|
||||
extern const int default_font_size;
|
||||
|
||||
#endif
|
||||
|
@ -23,7 +23,7 @@
|
||||
// supplied on the command line.
|
||||
|
||||
const char *default_left_icon_filename = "left.png";
|
||||
const char default_left_icon[] = {
|
||||
const unsigned char default_left_icon[] = {
|
||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00,
|
||||
0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00,
|
||||
0x00, 0x1e, 0x08, 0x03, 0x00, 0x00, 0x00, 0x0c, 0xee, 0x5e, 0x90,
|
||||
@ -77,7 +77,7 @@ const char default_left_icon[] = {
|
||||
const int default_left_icon_size = sizeof(default_left_icon);
|
||||
|
||||
const char *default_right_icon_filename = "right.png";
|
||||
const char default_right_icon[] = {
|
||||
const unsigned char default_right_icon[] = {
|
||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00,
|
||||
0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00,
|
||||
0x00, 0x1e, 0x08, 0x03, 0x00, 0x00, 0x00, 0x0c, 0xee, 0x5e, 0x90,
|
||||
@ -130,7 +130,7 @@ const char default_right_icon[] = {
|
||||
const int default_right_icon_size = sizeof(default_right_icon);
|
||||
|
||||
const char *default_up_icon_filename = "up.png";
|
||||
const char default_up_icon[] = {
|
||||
const unsigned char default_up_icon[] = {
|
||||
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00,
|
||||
0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x00,
|
||||
0x00, 0x1e, 0x08, 0x03, 0x00, 0x00, 0x00, 0x0c, 0xee, 0x5e, 0x90,
|
||||
|
@ -20,15 +20,15 @@
|
||||
#define DEFAULT_INDEX_ICONS_H
|
||||
|
||||
extern const char *default_left_icon_filename;
|
||||
extern const char default_left_icon[];
|
||||
extern const unsigned char default_left_icon[];
|
||||
extern const int default_left_icon_size;
|
||||
|
||||
extern const char *default_right_icon_filename;
|
||||
extern const char default_right_icon[];
|
||||
extern const unsigned char default_right_icon[];
|
||||
extern const int default_right_icon_size;
|
||||
|
||||
extern const char *default_up_icon_filename;
|
||||
extern const char default_up_icon[];
|
||||
extern const unsigned char default_up_icon[];
|
||||
extern const int default_up_icon_size;
|
||||
|
||||
#endif
|
||||
|
@ -24,6 +24,10 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef WIN32_VC
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: FontSamples::Constructor
|
||||
// Access: Public
|
||||
@ -166,7 +170,8 @@ post_command_line() {
|
||||
}
|
||||
|
||||
if (_name_text_maker == (PNMTextMaker *)NULL) {
|
||||
_name_text_maker = new PNMTextMaker(default_font, default_font_size, 0);
|
||||
_name_text_maker = new PNMTextMaker((const char *)default_font,
|
||||
default_font_size, 0);
|
||||
if (!_name_text_maker->is_valid()) {
|
||||
nout << "Unable to open default font.\n";
|
||||
delete _name_text_maker;
|
||||
|
@ -376,7 +376,8 @@ post_command_line() {
|
||||
}
|
||||
|
||||
if (_text_maker == (PNMTextMaker *)NULL) {
|
||||
_text_maker = new PNMTextMaker(default_font, default_font_size, 0);
|
||||
_text_maker = new PNMTextMaker((const char *)default_font,
|
||||
default_font_size, 0);
|
||||
if (!_text_maker->is_valid()) {
|
||||
nout << "Unable to open default font.\n";
|
||||
delete _text_maker;
|
||||
@ -405,7 +406,7 @@ post_command_line() {
|
||||
nout << "Unable to write to " << icon_filename << "\n";
|
||||
exit(1);
|
||||
}
|
||||
output.write(default_left_icon, default_left_icon_size);
|
||||
output.write((const char *)default_left_icon, default_left_icon_size);
|
||||
}
|
||||
}
|
||||
if (next_icon.empty()) {
|
||||
@ -421,7 +422,7 @@ post_command_line() {
|
||||
nout << "Unable to write to " << icon_filename << "\n";
|
||||
exit(1);
|
||||
}
|
||||
output.write(default_right_icon, default_right_icon_size);
|
||||
output.write((const char *)default_right_icon, default_right_icon_size);
|
||||
}
|
||||
}
|
||||
if (up_icon.empty()) {
|
||||
@ -437,7 +438,7 @@ post_command_line() {
|
||||
nout << "Unable to write to " << icon_filename << "\n";
|
||||
exit(1);
|
||||
}
|
||||
output.write(default_up_icon, default_up_icon_size);
|
||||
output.write((const char *)default_up_icon, default_up_icon_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#define LOCAL_LIBS \
|
||||
stitchbase
|
||||
#define OTHER_LIBS \
|
||||
progbase converter \
|
||||
progbase pandatoolbase converter \
|
||||
pnmimage:c mathutil:c linmath:c putil:c panda:m \
|
||||
express:c pandabase:c pandaexpress:m \
|
||||
dtoolutil:c dconfig:c dtoolbase:c dtoolconfig:m dtool:m \
|
||||
@ -21,7 +21,7 @@
|
||||
#define LOCAL_LIBS \
|
||||
stitchbase
|
||||
#define OTHER_LIBS \
|
||||
progbase converter \
|
||||
progbase pandatoolbase converter \
|
||||
pnmimagetypes:c pnmimage:c linmath:c putil:c panda:m \
|
||||
express:c pandabase:c pandaexpress:m \
|
||||
dtoolutil:c dconfig:c dtoolbase:c dtoolconfig:m dtool:m \
|
||||
|
@ -728,7 +728,7 @@ xcf_save_tile(const LayeredImage::TileManager &tm, int level, int tile) {
|
||||
array[i++] = tm._data->get_red_val(x, y);
|
||||
array[i++] = tm._data->get_green_val(x, y);
|
||||
array[i++] = tm._data->get_blue_val(x, y);
|
||||
array[i++] = 255;
|
||||
array[i++] = -1;
|
||||
}
|
||||
}
|
||||
assert(i == size);
|
||||
|
@ -91,6 +91,7 @@ stitch_init_parser(istream &in, const string &filename,
|
||||
|
||||
stitch_file:
|
||||
commands
|
||||
;
|
||||
|
||||
commands:
|
||||
empty
|
||||
@ -333,7 +334,7 @@ points_list:
|
||||
length:
|
||||
NUMBER length_units
|
||||
{
|
||||
$$ = $1 * $2
|
||||
$$ = $1 * $2;
|
||||
}
|
||||
| NUMBER_FEET
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user