Fix compilation errors when not using precompiled headers

Originally committed to SVN as r4511.
This commit is contained in:
Thomas Goyne 2010-06-14 19:26:27 +00:00
parent 340cc1d7f1
commit 5338a60cdb
11 changed files with 25 additions and 1 deletions

View file

@ -20,6 +20,8 @@
#ifndef LAGI_PRE #ifndef LAGI_PRE
#include <assert.h> #include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <map> #include <map>
#endif #endif

View file

@ -20,6 +20,7 @@
#ifndef LAGI_PRE #ifndef LAGI_PRE
#include <stdio.h> #include <stdio.h>
#include <stdint.h>
#include <time.h> #include <time.h>
#include <deque> #include <deque>

View file

@ -9,6 +9,7 @@
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include <sys/time.h>
// Windows C // Windows C
#ifdef _WIN32 #ifdef _WIN32

View file

@ -39,6 +39,7 @@
#include <vector> #include <vector>
#include "boost/shared_ptr.hpp" #include "boost/shared_ptr.hpp"
#include <wx/colour.h>
#include <wx/font.h> #include <wx/font.h>
#endif #endif

View file

@ -20,8 +20,12 @@
#ifndef AGI_PRE #ifndef AGI_PRE
#include <wx/checkbox.h>
#include <wx/combobox.h>
#include <wx/filefn.h> #include <wx/filefn.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h> #include <wx/spinctrl.h>
#include <wx/stattext.h>
#include <wx/stdpaths.h> #include <wx/stdpaths.h>
#include <wx/treebook.h> #include <wx/treebook.h>
#endif #endif

View file

@ -43,6 +43,7 @@
#include <wx/dcclient.h> #include <wx/dcclient.h>
#include <wx/glcanvas.h> #include <wx/glcanvas.h>
#include <wx/menu.h> #include <wx/menu.h>
#include <wx/toolbar.h>
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__

View file

@ -47,6 +47,7 @@ class VideoSlider;
class VideoBox; class VideoBox;
class VideoOutGL; class VideoOutGL;
class IVisualTool; class IVisualTool;
class wxToolBar;
namespace agi { namespace agi {
class OptionValue; class OptionValue;
} }

View file

@ -36,6 +36,7 @@
#include "config.h" #include "config.h"
#ifndef AGI_PRE #ifndef AGI_PRE
#include <algorithm>
#include <wx/glcanvas.h> #include <wx/glcanvas.h>
#endif #endif

View file

@ -36,8 +36,9 @@
#pragma once #pragma once
#ifndef AGI_PRE #ifndef AGI_PRE
#include <vector> #include <map>
#include <set> #include <set>
#include <vector>
#include <wx/log.h> #include <wx/log.h>
#include <wx/event.h> #include <wx/event.h>

View file

@ -35,9 +35,19 @@
#ifndef AGI_PRE #ifndef AGI_PRE
#include <wx/toolbar.h> #include <wx/toolbar.h>
#ifdef HAVE_APPLE_OPENGL_FRAMEWORK
#include <OpenGL/GL.h>
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include "gl/glext.h" #include "gl/glext.h"
#endif #endif
#endif
#include "config.h" #include "config.h"
#include "ass_dialogue.h" #include "ass_dialogue.h"

View file

@ -119,6 +119,7 @@ int main(int argc, const char *argv[]) {
wxString filename; wxString filename;
FileIterator iter(argc, argv); FileIterator iter(argc, argv);
outC << "#include \"libresrc.h\"" << endl;
while (iter.Next(&filename)) { while (iter.Next(&filename)) {
ifstream infile(filename.char_str(), ios::binary); ifstream infile(filename.char_str(), ios::binary);
infile.seekg(0, ios::end); infile.seekg(0, ios::end);