git-svn-id: https://profuse.googlecode.com/svn/branches/v2@393 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2011-03-18 03:07:21 +00:00
parent 1fe6327ab1
commit 82ecf63db6
2 changed files with 14 additions and 9 deletions

View File

@ -1,9 +0,0 @@
CC = g++
CPPFLAGS += -g -Wall -I../
all : Exception.o Lock.o
Exception.o : Exception.cpp Exception.h
Lock.o : Lock.cpp Lock.h

14
Common/unordered_map.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef __COMMON_UNORDERED_MAP_H__
#define __COMMON_UNORDERED_MAP_H__
#ifdef CPP0X
//c++0x
#include <unordered_map>
#define UNORDERED_MAP(...) std::unordered_map(__VA_ARGS__)
#else
// tr1
#include <tr1/unordered_map>
#define UNORDERED_MAP(...) std::tr1::unordered_map(__VA_ARGS__)
#endif
#endif