Skip to content

Commit

Permalink
Merge pull request #1959 from yebblies/definetoifdef
Browse files Browse the repository at this point in the history
#define alias - stdmsg
  • Loading branch information
MartinNowak committed May 4, 2013
2 parents b99dbb9 + c21c6ee commit 1893e16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/mars.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ void printCtfePerformanceStats();

static bool parse_arch(size_t argc, char** argv, bool is64bit);

FILE *stdmsg;

Global global;

Global::Global()
Expand Down Expand Up @@ -414,6 +416,7 @@ int tryMain(size_t argc, char *argv[])
printf("DMD %s DEBUG\n", global.version);
#endif

stdmsg = stdout;
unittests();

// Check for malformed input
Expand Down
6 changes: 1 addition & 5 deletions src/mars.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,7 @@ void halt();
void util_progress();

/*** Where to send error messages ***/
#ifdef IN_GCC
#define stdmsg stderr
#else
#define stdmsg stderr
#endif
extern FILE *stdmsg;

struct Dsymbol;
class Library;
Expand Down

0 comments on commit 1893e16

Please sign in to comment.