Flipped the include guard and the pragma, and don't use the pragma for early versions of gcc (< 3.4)

This commit is contained in:
jbeder
2011-03-02 06:11:41 +00:00
parent f4d2f11d2c
commit 142a4bca9b
57 changed files with 232 additions and 108 deletions

View File

@@ -1,8 +1,10 @@
#pragma once
#ifndef COLLECTIONSTACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#define COLLECTIONSTACK_H_62B23520_7C8E_11DE_8A39_0800200C9A66
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#pragma once
#endif
#include <stack>
#include <cassert>