summaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2008-09-15 19:26:32 +0000
committerDavid <david@xagasoft.com>2008-09-15 19:26:32 +0000
commit3c6cb7f2347aed974543f9082a0ccd297577db41 (patch)
treefe47c6742a8279723af082d090411aa191c5d875 /src/fstring.h
parentd464a7efc25eb3b944db84a4c03e986d964f37e0 (diff)
downloadlibbu++-3c6cb7f2347aed974543f9082a0ccd297577db41.tar.gz
libbu++-3c6cb7f2347aed974543f9082a0ccd297577db41.tar.bz2
libbu++-3c6cb7f2347aed974543f9082a0ccd297577db41.tar.xz
libbu++-3c6cb7f2347aed974543f9082a0ccd297577db41.zip
david - made precompiler not do wordexp stuff in expand function on win32 targets... added buildMinGW.conf file for targeting win32... undef-d cpy macro in fstring
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h
index 93216a1..31b55d2 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -11,7 +11,11 @@
11#include <stdint.h> 11#include <stdint.h>
12#include <string> 12#include <string>
13#include <memory> 13#include <memory>
14
15#ifndef WIN32
14#include <wordexp.h> 16#include <wordexp.h>
17#endif
18
15#include "bu/archival.h" 19#include "bu/archival.h"
16#include "bu/archive.h" 20#include "bu/archive.h"
17#include "bu/hash.h" 21#include "bu/hash.h"
@@ -531,6 +535,7 @@ namespace Bu
531 { 535 {
532 flatten(); 536 flatten();
533 537
538#ifndef WIN32
534 wordexp_t result; 539 wordexp_t result;
535 540
536 /* Expand the string for the program to run. */ 541 /* Expand the string for the program to run. */
@@ -550,6 +555,7 @@ namespace Bu
550 default: /* Some other error. */ 555 default: /* Some other error. */
551 return; 556 return;
552 } 557 }
558#endif
553 } 559 }
554 560
555 /** 561 /**
@@ -1061,4 +1067,8 @@ namespace Bu
1061#include <ostream> 1067#include <ostream>
1062std::basic_ostream<char>& operator<< (std::basic_ostream<char> &os, const Bu::FString &val ); 1068std::basic_ostream<char>& operator<< (std::basic_ostream<char> &os, const Bu::FString &val );
1063 1069
1070#ifndef VALTEST
1071#undef cpy
1072#endif
1073
1064#endif 1074#endif