test/mime_test.cc
changeset 345 9e129a270a46
parent 306 abca32c31ace
child 1513 e7f7e42385b5
     1.1 --- a/test/mime_test.cc	Sun Aug 30 15:41:11 2015 +0200
     1.2 +++ b/test/mime_test.cc	Mon Aug 31 16:34:18 2015 +0200
     1.3 @@ -1,3 +1,5 @@
     1.4 +#include <stdlib.h>
     1.5 +#include <string.h>
     1.6  #include "platform.h"
     1.7  
     1.8  #include <iostream>
     1.9 @@ -11,7 +13,7 @@
    1.10  
    1.11  void test_mime_decoding(string filename) {
    1.12      cout << "opening " << filename << " for reading\n";
    1.13 -    ifstream inFile3 (filename);
    1.14 +    ifstream inFile3 (filename.c_str());
    1.15      assert(inFile3.is_open());
    1.16  
    1.17      string mimetext3;