Skip to content

Commit

Permalink
PrintMacros: add missing include of <iostream>
Browse files Browse the repository at this point in the history
The header file should be safely included even if there are
no other previously included header files. Fix it.

Signed-off-by: Emilio G. Cota <cota@braap.org>
  • Loading branch information
cota committed Nov 4, 2014
1 parent 74ba418 commit ee64e5c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PrintMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#ifndef PRINT_MACROS_H
#define PRINT_MACROS_H

#include <iostream>

extern int SHOW_SIM_OUTPUT; //enable or disable PRINT() statements -- set by flag in TraceBasedSim.cpp

#define ERROR(str) std::cerr<<"[ERROR ("<<__FILE__<<":"<<__LINE__<<")]: "<<str<<std::endl;
Expand Down

0 comments on commit ee64e5c

Please sign in to comment.