Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8523 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jun 16, 2006, 11:16:38 AM (18 years ago)
Author:
bensch
Message:

trunk: compiles on Windows: DANGER: THE LINUX PORT MAY BE COMPROMISED

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/effects/volfog_effect.cc

    r8495 r8523  
    2525
    2626#define GLX_GLXEXT_PROTOTYPES
    27 #include <GL/glx.h>
     27//#include <GL/glx.h>
    2828// #include <GL/glut.h>
    2929
     
    9090
    9191
    92     glFogCoordfEXT       = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT");
     92    /*    glFogCoordfEXT       = (PFNGLFOGCOORDFEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfEXT");
    9393    glFogCoordfvEXT      = (PFNGLFOGCOORDFVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordfvEXT");
    9494    glFogCoorddEXT       = (PFNGLFOGCOORDDEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoorddEXT");
    9595    glFogCoorddvEXT      = (PFNGLFOGCOORDDVEXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoorddvEXT");
    9696    glFogCoordPointerEXT = (PFNGLFOGCOORDPOINTEREXTPROC)glXGetProcAddressARB((const GLubyte*)"glFogCoordPointerEXT");
    97 
     97    */
    9898    // set the fog attributes
    9999    glFogf (GL_FOG_START,  fogStart);
  • trunk/src/lib/util/filesys/directory.cc

    r8332 r8523  
    9999    return false;
    100100  }
     101
     102  dirent* entry;
     103  while ((entry = readdir(handle)) != NULL)
     104    this->_fileNames.push_back(entry->d_name);
     105  closedir(handle);
     106
    101107#else
    102108  HANDLE handle;
     
    124130    this->_fileNames.push_back(entry.cFileName);
    125131  }
    126 #endif
    127 
    128   // BUILDING the list of contained Files. (only the names)
    129 #if not defined(__WIN32__)
    130   dirent* entry;
    131   while ((entry = readdir(handle)) != NULL)
    132     this->_fileNames.push_back(entry->d_name);
    133   closedir(handle);
    134 #else
    135   WIN32_FIND_DATA entry;
    136   while ((int ok = FindNextFile(handle, &entry)) != 0)
     132  int ok;
     133  while ((ok = FindNextFile(handle, &entry)) != 0)
    137134    this->_fileNames.push_back(entry.cFileName);
    138135  FindClose(handle);
    139 #endif
     136#endif /* __WIN_32__ */
     137
    140138  this->_opened = true;
    141139  return true;
  • trunk/src/story_entities/simple_game_menu.cc

    r8518 r8523  
    191191#include <ApplicationServices/ApplicationServices.h>
    192192#elif defined __WIN32__
    193 #include <shellapi.h>
     193//#include <shellapi.h>
    194194#endif
    195195
     
    205205  CFRelease (url_handle);
    206206#elif defined __WIN32__
    207   ShellExecute(GetActiveWindow(),
     207  /*  ShellExecute(GetActiveWindow(),
    208208               "open", URL.c_str(), NULL, NULL, SW_SHOWNORMAL);
    209 }
     209               }*/
    210210#endif
    211211  PRINTF(3)("loaded external webpage %s\n", URL.c_str());
  • trunk/src/util/signal_handler.h

    r8293 r8523  
    7373  void dontCatch() {};
    7474  void registerCallback( SignalCallback cb, void * someData ) {};
     75
     76 private:
     77    static SignalHandler * singletonRef;
    7578};
    7679#endif
Note: See TracChangeset for help on using the changeset viewer.