This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9827 for ps


Ignore:
Timestamp:
07/15/11 15:22:48 (13 years ago)
Author:
philip
Message:

Be a bit more robust to build environment changes.
Reduce some module dependencies.
Clean up some unused instantiations.

Location:
ps/trunk/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/external_libraries/enet.h

    r9579 r9827  
    4040#define _WINSOCK2API_   // winsock2.h include guard
    4141
    42 #define WIN32
     42#ifndef WIN32
     43# define WIN32
     44#endif
    4345
    4446#endif  // OS_WIN
  • ps/trunk/source/pch/engine/precompiled.h

    r8542 r9827  
    2828//    saved by including it here. (~10% in a full rebuild, as of r2365)
    2929#include "ps/CStr.h"
    30 #include "scripting/SpiderMonkey.h"
    3130#include <boost/shared_ptr.hpp>
    3231#include <boost/weak_ptr.hpp>
  • ps/trunk/source/ps/Preprocessor.cpp

    r9426 r9827  
    764764    }
    765765
    766     uint len = oArg.Length;
     766    unsigned int len = oArg.Length;
    767767    while (true)
    768768    {
  • ps/trunk/source/renderer/Renderer.h

    r9814 r9827  
    2727#include "graphics/SColor.h"
    2828#include "graphics/ShaderProgram.h"
    29 #include "lib/ogl.h"
    3029#include "lib/res/handle.h"
    3130#include "ps/Singleton.h"
     
    235234
    236235    // bind a GL texture object to active unit
    237     void BindTexture(int unit,GLuint tex);
     236    void BindTexture(int unit, unsigned int tex);
    238237
    239238    // load the default set of alphamaps.
  • ps/trunk/source/scriptinterface/ScriptTypes.h

    r9213 r9827  
    2121#ifdef _WIN32
    2222# define XP_WIN
    23 # define WIN32 // SpiderMonkey expects this
     23# ifndef WIN32
     24#  define WIN32 // SpiderMonkey expects this
     25# endif
    2426
    2527// The jsval struct type causes crashes due to weird miscompilation
     
    3941#include <cstring> // required by jsutil.h
    4042
     43// SpiderMonkey wants the DEBUG flag
     44#ifndef NDEBUG
     45# ifndef DEBUG
     46#  define DEBUG
     47# endif
     48#endif
     49
    4150#include "js/jsapi.h"
    4251
  • ps/trunk/source/tools/atlas/AtlasScript/ScriptInterface.cpp

    r9567 r9827  
    345345template bool ScriptInterface::FromJSVal<float>(JSContext*, jsval, float&);
    346346template bool ScriptInterface::FromJSVal<CScriptVal>(JSContext*, jsval, CScriptVal&);
    347 template bool ScriptInterface::FromJSVal<AtlasMessage::sObjectSettings>(JSContext*, jsval, AtlasMessage::sObjectSettings&);
    348347template jsval ScriptInterface::ToJSVal<wxString>(JSContext*, wxString const&);
    349 template jsval ScriptInterface::ToJSVal<wxKeyEvent>(JSContext*, wxKeyEvent const&);
    350 template jsval ScriptInterface::ToJSVal<wxMouseEvent>(JSContext*, wxMouseEvent const&);
    351348template jsval ScriptInterface::ToJSVal<int>(JSContext*, int const&);
    352349template jsval ScriptInterface::ToJSVal<float>(JSContext*, float const&);
Note: See TracChangeset for help on using the changeset viewer.