Skip to content

Commit

Permalink
Move single-include guards inside include guards
Browse files Browse the repository at this point in the history
gcc has optimizations for include guards that only work
if they are outermost in the the header.
https://bugzilla.gnome.org/show_bug.cgi?id=689810
  • Loading branch information
Matthias Clasen committed Dec 28, 2012
1 parent 89d48d7 commit e1b99b2
Show file tree
Hide file tree
Showing 216 changed files with 648 additions and 648 deletions.
6 changes: 3 additions & 3 deletions gio/gaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_ACTION_H__
#define __G_ACTION_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ACTION_H__
#define __G_ACTION_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gactiongroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_ACTION_GROUP_H__
#define __G_ACTION_GROUP_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ACTION_GROUP_H__
#define __G_ACTION_GROUP_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gactiongroupexporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
*/


#ifndef __G_ACTION_GROUP_EXPORTER_H__
#define __G_ACTION_GROUP_EXPORTER_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ACTION_GROUP_EXPORTER_H__
#define __G_ACTION_GROUP_EXPORTER_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gactionmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_ACTION_MAP_H__
#define __G_ACTION_MAP_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ACTION_MAP_H__
#define __G_ACTION_MAP_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gappinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_APP_INFO_H__
#define __G_APP_INFO_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_APP_INFO_H__
#define __G_APP_INFO_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_APPLICATION_H__
#define __G_APPLICATION_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_APPLICATION_H__
#define __G_APPLICATION_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gapplicationcommandline.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_APPLICATION_COMMAND_LINE_H__
#define __G_APPLICATION_COMMAND_LINE_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_APPLICATION_COMMAND_LINE_H__
#define __G_APPLICATION_COMMAND_LINE_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gasyncinitable.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_ASYNC_INITABLE_H__
#define __G_ASYNC_INITABLE_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ASYNC_INITABLE_H__
#define __G_ASYNC_INITABLE_H__

#include <gio/giotypes.h>
#include <gio/ginitable.h>

Expand Down
6 changes: 3 additions & 3 deletions gio/gasyncresult.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_ASYNC_RESULT_H__
#define __G_ASYNC_RESULT_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_ASYNC_RESULT_H__
#define __G_ASYNC_RESULT_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gbufferedinputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Christian Kellner <[email protected]>
*/

#ifndef __G_BUFFERED_INPUT_STREAM_H__
#define __G_BUFFERED_INPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_BUFFERED_INPUT_STREAM_H__
#define __G_BUFFERED_INPUT_STREAM_H__

#include <gio/gfilterinputstream.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gbufferedoutputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Christian Kellner <[email protected]>
*/

#ifndef __G_BUFFERED_OUTPUT_STREAM_H__
#define __G_BUFFERED_OUTPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_BUFFERED_OUTPUT_STREAM_H__
#define __G_BUFFERED_OUTPUT_STREAM_H__

#include <gio/gfilteroutputstream.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gcancellable.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CANCELLABLE_H__
#define __G_CANCELLABLE_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CANCELLABLE_H__
#define __G_CANCELLABLE_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gcharsetconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CHARSET_CONVERTER_H__
#define __G_CHARSET_CONVERTER_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CHARSET_CONVERTER_H__
#define __G_CHARSET_CONVERTER_H__

#include <gio/gconverter.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gcontenttype.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CONTENT_TYPE_H__
#define __G_CONTENT_TYPE_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CONTENT_TYPE_H__
#define __G_CONTENT_TYPE_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CONVERTER_H__
#define __G_CONVERTER_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CONVERTER_H__
#define __G_CONVERTER_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gconverterinputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CONVERTER_INPUT_STREAM_H__
#define __G_CONVERTER_INPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CONVERTER_INPUT_STREAM_H__
#define __G_CONVERTER_INPUT_STREAM_H__

#include <gio/gfilterinputstream.h>
#include <gio/gconverter.h>

Expand Down
6 changes: 3 additions & 3 deletions gio/gconverteroutputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_CONVERTER_OUTPUT_STREAM_H__
#define __G_CONVERTER_OUTPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CONVERTER_OUTPUT_STREAM_H__
#define __G_CONVERTER_OUTPUT_STREAM_H__

#include <gio/gfilteroutputstream.h>
#include <gio/gconverter.h>

Expand Down
6 changes: 3 additions & 3 deletions gio/gcredentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: David Zeuthen <[email protected]>
*/

#ifndef __G_CREDENTIALS_H__
#define __G_CREDENTIALS_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_CREDENTIALS_H__
#define __G_CREDENTIALS_H__

#include <gio/giotypes.h>

#ifdef G_OS_UNIX
Expand Down
6 changes: 3 additions & 3 deletions gio/gdatainputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_DATA_INPUT_STREAM_H__
#define __G_DATA_INPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_DATA_INPUT_STREAM_H__
#define __G_DATA_INPUT_STREAM_H__

#include <gio/gbufferedinputstream.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gdataoutputstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: Alexander Larsson <[email protected]>
*/

#ifndef __G_DATA_OUTPUT_STREAM_H__
#define __G_DATA_OUTPUT_STREAM_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_DATA_OUTPUT_STREAM_H__
#define __G_DATA_OUTPUT_STREAM_H__

#include <gio/gfilteroutputstream.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gdbusactiongroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Authors: Ryan Lortie <[email protected]>
*/

#ifndef __G_DBUS_ACTION_GROUP_H__
#define __G_DBUS_ACTION_GROUP_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_DBUS_ACTION_GROUP_H__
#define __G_DBUS_ACTION_GROUP_H__

#include "giotypes.h"

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gdbusaddress.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: David Zeuthen <[email protected]>
*/

#ifndef __G_DBUS_ADDRESS_H__
#define __G_DBUS_ADDRESS_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#ifndef __G_DBUS_ADDRESS_H__
#define __G_DBUS_ADDRESS_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
6 changes: 3 additions & 3 deletions gio/gdbusauth.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
* Author: David Zeuthen <[email protected]>
*/

#ifndef __G_DBUS_AUTH_H__
#define __G_DBUS_AUTH_H__

#if !defined (GIO_COMPILATION)
#error "gdbusauth.h is a private header file."
#endif

#ifndef __G_DBUS_AUTH_H__
#define __G_DBUS_AUTH_H__

#include <gio/giotypes.h>

G_BEGIN_DECLS
Expand Down
Loading

0 comments on commit e1b99b2

Please sign in to comment.