diff options
author | Max Horn | 2010-01-08 22:07:35 +0000 |
---|---|---|
committer | Max Horn | 2010-01-08 22:07:35 +0000 |
commit | 0cf53b025d8136a2f20ba405da1a696d0aa8767a (patch) | |
tree | 72e4241bf099c72e1f0a843c5632594f6b4947f5 /common | |
parent | 474d49946f5254bff7ac6a490fcc3b02655fae23 (diff) | |
download | scummvm-rg350-0cf53b025d8136a2f20ba405da1a696d0aa8767a.tar.gz scummvm-rg350-0cf53b025d8136a2f20ba405da1a696d0aa8767a.tar.bz2 scummvm-rg350-0cf53b025d8136a2f20ba405da1a696d0aa8767a.zip |
Move DisposeAfterUse::Flag from Common to global namespace, and into a new header common/types.h
svn-id: r47180
Diffstat (limited to 'common')
-rw-r--r-- | common/stream.h | 6 | ||||
-rw-r--r-- | common/types.h | 35 |
2 files changed, 36 insertions, 5 deletions
diff --git a/common/stream.h b/common/stream.h index 2a8a9e4fc4..b6afcd85a9 100644 --- a/common/stream.h +++ b/common/stream.h @@ -26,7 +26,7 @@ #ifndef COMMON_STREAM_H #define COMMON_STREAM_H -#include "common/scummsys.h" +#include "common/types.h" #include "common/endian.h" namespace Common { @@ -391,10 +391,6 @@ public: }; -namespace DisposeAfterUse { - enum Flag { NO, YES }; -} - /** * SubReadStream provides access to a ReadStream restricted to the range * [currentPosition, currentPosition+end). diff --git a/common/types.h b/common/types.h new file mode 100644 index 0000000000..bed204ae1b --- /dev/null +++ b/common/types.h @@ -0,0 +1,35 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + */ + +#ifndef COMMON_TYPES_H +#define COMMON_TYPES_H + +#include "common/scummsys.h" + +namespace DisposeAfterUse { + enum Flag { NO, YES }; +} + + +#endif |