Skip to content

Commit

Permalink
made #pragma interface' and pragma implementation' conditional to a…
Browse files Browse the repository at this point in the history
…void clang-3.4 warnings without -Wunknown-pragmas
  • Loading branch information
Peter Szabo committed Jan 19, 2014
1 parent 4626ad4 commit f4d9921
Show file tree
Hide file tree
Showing 48 changed files with 96 additions and 0 deletions.
2 changes: 2 additions & 0 deletions StdAfx.h
Expand Up @@ -7,7 +7,9 @@
#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_

#if _MSC_VER > 1000
#ifndef __clang__
#pragma once
#endif
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
Expand Down
2 changes: 2 additions & 0 deletions appliers.cpp
Expand Up @@ -6,8 +6,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "rule.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions at_bitmap.h
Expand Up @@ -9,8 +9,10 @@
#define AT_BITMAP_H

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#define PTS_SAM2P 1
#define FATALP(m) Error::sev(Error::EERROR) << m << (Error*)0;
Expand Down
2 changes: 2 additions & 0 deletions cgif.c
Expand Up @@ -30,8 +30,10 @@ THE SOFTWARE.
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

/**** pts: not an ANSI C function */
#undef EXTERN_C
Expand Down
2 changes: 2 additions & 0 deletions cgif.h
Expand Up @@ -40,8 +40,10 @@ THE SOFTWARE.
#define CGIF_H

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#include "config2.h" /* PTS_const */

Expand Down
2 changes: 2 additions & 0 deletions crc32.c
Expand Up @@ -7,8 +7,10 @@
/* $Id: crc32.c,v 1.2 2002/12/11 14:01:52 pts Exp $ */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif
#if OBJDEP
# warning PROVIDES: crc32
#endif
Expand Down
2 changes: 2 additions & 0 deletions crc32.h
Expand Up @@ -5,8 +5,10 @@
#define CRC32_H 1

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#include "config2.h"

Expand Down
2 changes: 2 additions & 0 deletions encoder.cpp
Expand Up @@ -9,8 +9,10 @@
/* Imp: add zlib */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif


#include "encoder.hpp"
Expand Down
2 changes: 2 additions & 0 deletions encoder.hpp
Expand Up @@ -3,8 +3,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef ENCODER_HPP
#define ENCODER_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions error.cpp
Expand Up @@ -5,8 +5,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "error.hpp"
#include "gensio.hpp"
Expand Down
2 changes: 2 additions & 0 deletions error.hpp
Expand Up @@ -3,8 +3,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef ERROR_HPP
#define ERROR_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions gensi.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "gensi.hpp"
#include <string.h> /* strlen() */
Expand Down
2 changes: 2 additions & 0 deletions gensi.hpp
Expand Up @@ -4,8 +4,10 @@
/* Imp: get rid of gensio.o (Buffer::Writable::printf requires B...) */

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef GENSI_HPP
#define GENSI_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions gensio.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#if 0
extern "C" int errno;
Expand Down
2 changes: 2 additions & 0 deletions gensio.hpp
Expand Up @@ -3,8 +3,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef GENSIO_HPP
#define GENSIO_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions helpere.hpp
Expand Up @@ -5,8 +5,10 @@

/* Don't use this here, because we don't have helpere.cpp
#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif
*/

#ifndef HELPERE_HPP
Expand Down
2 changes: 2 additions & 0 deletions image.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions image.hpp
Expand Up @@ -5,8 +5,10 @@
/* Imp: keep future transparency in toIndexed(...) */

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef SAMPLED_HPP
#define SAMPLED_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions in_bmp.cpp
Expand Up @@ -5,8 +5,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions in_gif.cpp
Expand Up @@ -12,8 +12,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#ifdef USE_GNU_SOURCE_INSTEAD_OF_POSIX_SOURCE
#define _GNU_SOURCE 1 /* Implies _POSIX_C_SOURCE and _POSIX_C_SOURCE >= 2. */
Expand Down
2 changes: 2 additions & 0 deletions in_jai.cpp
Expand Up @@ -5,8 +5,10 @@
/* Imp: test this code with various JPEG files! */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions in_jai.hpp
Expand Up @@ -2,8 +2,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef IN_JAI_HPP
#define IN_JAI_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions in_jpeg.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"

Expand Down
2 changes: 2 additions & 0 deletions in_lbm.cpp
Expand Up @@ -10,8 +10,10 @@
/* Imp: get docs about the LBM format, and rewrite this from scratch */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions in_png.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"

Expand Down
2 changes: 2 additions & 0 deletions in_pnm.cpp
Expand Up @@ -5,8 +5,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions in_ps.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"

Expand Down
2 changes: 2 additions & 0 deletions in_tga.cpp
Expand Up @@ -5,8 +5,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"
#include "error.hpp"
Expand Down
2 changes: 2 additions & 0 deletions in_tiff.cpp
Expand Up @@ -6,8 +6,10 @@
/* Imp: use xviff.c */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"

Expand Down
2 changes: 2 additions & 0 deletions in_xpm.cpp
Expand Up @@ -5,8 +5,10 @@
/* Imp: test this code with various xpm files! */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "image.hpp"

Expand Down
2 changes: 2 additions & 0 deletions input-bmp.ci
Expand Up @@ -3,8 +3,10 @@
/* input-bmp.ci: reads any bitmap I could get for testing */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions input-pnm.ci
Expand Up @@ -7,8 +7,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

/* #include "types.h" */
#include "at_bitmap.h"
Expand Down
2 changes: 2 additions & 0 deletions input-tga.ci
Expand Up @@ -3,8 +3,10 @@
/* input-tga.ci reads tga files */

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions jpegdump_main.cpp
Expand Up @@ -10,8 +10,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "config2.h"
#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions main.hpp
Expand Up @@ -3,8 +3,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma interface
#endif
#endif

#ifndef MAIN_HPP
#define MAIN_HPP 1
Expand Down
2 changes: 2 additions & 0 deletions mapping.cpp
Expand Up @@ -4,8 +4,10 @@
*/

#ifdef __GNUC__
#ifndef __clang__
#pragma implementation
#endif
#endif

#include "mapping.hpp"
#include "error.hpp"
Expand Down

0 comments on commit f4d9921

Please sign in to comment.