Ignore:
Timestamp:
11/12/09 23:32:23 (4 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
d05c3f0
Parents:
818b54e
Message:

fixed so we have a settings subsytem (ini files) which work on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/settings/settings_ini.hpp

    rb21f30b r3eedfa6  
    44#include <map> 
    55#include <settings/Settings.h> 
     6 
    67#include <simpleini/simpleini.h> 
    78#include <error.hpp> 
     
    227228      if (_wfopen_s(&fp, filename.c_str(), L"rb") != 0) 
    228229        return false; 
     230#elif WIN32 
     231      fp = _wfopen(filename.c_str(), L"rb"); 
    229232#else 
    230       fp = _wfopen(filename.c_str(), L"rb"); 
     233      fp = fopen(to_string(filename).c_str(), "rb"); 
    231234#endif 
    232235      if (!fp) 
Note: See TracChangeset for help on using the changeset viewer.