Browse Source

build: use #pragma once instead of header guards because 1) fuck the dinosaurs,

and 2) fuck the Visual Studio compiler that crashes when confused.
master
Sam Hocevar 10 years ago
parent
commit
c8af09f3b4
6 changed files with 7 additions and 22 deletions
  1. +1
    -4
      neercs/neercs.h
  2. +2
    -3
      neercs/old/neercs.h
  3. +1
    -4
      neercs/term/pty.h
  4. +1
    -4
      neercs/term/term.h
  5. +1
    -3
      neercs/video/render.h
  6. +1
    -4
      neercs/video/text-render.h

+ 1
- 4
neercs/neercs.h View File

@@ -4,8 +4,7 @@
// Copyright: (c) 2012 Sam Hocevar <sam@hocevar.net>
//

#if !defined __NEERCS_H__
#define __NEERCS_H__
#pragma once

#include <caca.h>

@@ -36,5 +35,3 @@ private:
bool m_ready;
};

#endif // __NEERCS_H__


+ 2
- 3
neercs/old/neercs.h View File

@@ -11,8 +11,7 @@
* http://www.wtfpl.net/ for more details.
*/

#ifndef _NEERCS_H_
#define _NEERCS_H_
#pragma once

#include <stdint.h>
#include <caca.h>
@@ -427,4 +426,4 @@ static inline void debug(const char *format, ...)
#else
# define debug(format, ...) do {} while(0)
#endif
#endif /* _NEERCS_H_ */

+ 1
- 4
neercs/term/pty.h View File

@@ -2,8 +2,7 @@
// Neercs
//

#if !defined __TERM_PTY_H__
#define __TERM_PTY_H__
#pragma once

class Pty
{
@@ -30,5 +29,3 @@ private:
ivec2 m_size;
};

#endif // __TERM_PTY_H__


+ 1
- 4
neercs/term/term.h View File

@@ -2,8 +2,7 @@
// Neercs
//

#if !defined __TERM_TERM_H__
#define __TERM_TERM_H__
#pragma once

#include "term/pty.h"

@@ -129,5 +128,3 @@ private:
bool m_debug;
};

#endif // __TERM_TERM_H__


+ 1
- 3
neercs/video/render.h View File

@@ -2,8 +2,7 @@
// Neercs
//

#if !defined __VIDEO_RENDER_H__
#define __VIDEO_RENDER_H__
#pragma once

class Render : public WorldEntity
{
@@ -55,4 +54,3 @@ private:
m_flags;
};

#endif // __VIDEO_RENDER_H__

+ 1
- 4
neercs/video/text-render.h View File

@@ -2,8 +2,7 @@
// Neercs
//

#if !defined __TEXT_RENDER_H__
#define __TEXT_RENDER_H__
#pragma once

class TextRender
{
@@ -31,5 +30,3 @@ private:
Framebuffer *m_fbo;
};

#endif // __TEXT_RENDER_H__


Loading…
Cancel
Save