diff --git a/pan/data-impl/article-filter.cc b/pan/data-impl/article-filter.cc index b06d0c2..f424738 100644 --- a/pan/data-impl/article-filter.cc +++ b/pan/data-impl/article-filter.cc @@ -25,10 +25,7 @@ #include //#include -extern "C" -{ - #include -} +#include #include "article-filter.h" diff --git a/pan/data-impl/data-impl.cc b/pan/data-impl/data-impl.cc index 88012cc..4465966 100644 --- a/pan/data-impl/data-impl.cc +++ b/pan/data-impl/data-impl.cc @@ -22,10 +22,8 @@ **************/ #include -extern "C" { - #include - #include // for g_build_filename -} +#include +#include // for g_build_filename #include #include #include diff --git a/pan/data-impl/data-io.cc b/pan/data-impl/data-io.cc index bea1a90..d938634 100644 --- a/pan/data-impl/data-io.cc +++ b/pan/data-impl/data-io.cc @@ -27,9 +27,9 @@ extern "C" { #include // for chmod #include // for chmod #include - #include - #include } +#include +#include #include #include #include diff --git a/pan/data-impl/groups.cc b/pan/data-impl/groups.cc index 244feb9..da0183a 100644 --- a/pan/data-impl/groups.cc +++ b/pan/data-impl/groups.cc @@ -29,9 +29,9 @@ #include #include +#include extern "C" { #include - #include } #include diff --git a/pan/data-impl/headers.cc b/pan/data-impl/headers.cc index f8c4466..16d5672 100644 --- a/pan/data-impl/headers.cc +++ b/pan/data-impl/headers.cc @@ -25,10 +25,10 @@ #include #include #include +#include extern "C" { #include // for chmod #include // for chmod - #include } #include #include diff --git a/pan/data-impl/profiles.cc b/pan/data-impl/profiles.cc index e999fda..a6e6bb5 100644 --- a/pan/data-impl/profiles.cc +++ b/pan/data-impl/profiles.cc @@ -26,9 +26,9 @@ extern "C" { #include // for chmod #include // for chmod - #include - #include } +#include +#include #include #include #include diff --git a/pan/data-impl/server.cc b/pan/data-impl/server.cc index 9ea55d4..b23782f 100644 --- a/pan/data-impl/server.cc +++ b/pan/data-impl/server.cc @@ -25,10 +25,8 @@ #include #include #include -extern "C" { - #include // for GMarkup - #include -} +#include // for GMarkup +#include #include #include #include diff --git a/pan/data-impl/xover.cc b/pan/data-impl/xover.cc index ff8644f..a199556 100644 --- a/pan/data-impl/xover.cc +++ b/pan/data-impl/xover.cc @@ -20,10 +20,8 @@ #include #include #include -extern "C" { - #include - #include -} +#include +#include #include #include #include diff --git a/pan/data/article-cache.cc b/pan/data/article-cache.cc index 1855153..30fa0f9 100644 --- a/pan/data/article-cache.cc +++ b/pan/data/article-cache.cc @@ -26,11 +26,10 @@ extern "C" #include #include #include - - #include - #include - #include } +#include +#include +#include #include #include diff --git a/pan/data/article-cache.h b/pan/data/article-cache.h index 2ac722b..1304bfe 100644 --- a/pan/data/article-cache.h +++ b/pan/data/article-cache.h @@ -22,9 +22,7 @@ #include #include -extern "C" { - #include // for guint64 -} +#include // for guint64 #include #include diff --git a/pan/data/cert-store.cc b/pan/data/cert-store.cc index 340fc8b..f6cd46e 100644 --- a/pan/data/cert-store.cc +++ b/pan/data/cert-store.cc @@ -34,10 +34,8 @@ #include #include -extern "C" { #include #include -} #include #include diff --git a/pan/data/encode-cache.cc b/pan/data/encode-cache.cc index 3a82ea9..61c67a2 100644 --- a/pan/data/encode-cache.cc +++ b/pan/data/encode-cache.cc @@ -28,11 +28,10 @@ extern "C" #include #include #include - - #include - #include - #include } +#include +#include +#include #include #include diff --git a/pan/data/encode-cache.h b/pan/data/encode-cache.h index 8bbd530..1affc0c 100644 --- a/pan/data/encode-cache.h +++ b/pan/data/encode-cache.h @@ -22,9 +22,7 @@ #include #include -extern "C" { - #include // for guint64 -} +#include // for guint64 #include #include diff --git a/pan/general/e-util.cc b/pan/general/e-util.cc index af5ccd0..62879ee 100644 --- a/pan/general/e-util.cc +++ b/pan/general/e-util.cc @@ -26,9 +26,9 @@ #include extern "C" { #include - #include - #include } +#include +#include #include "debug.h" #include "e-util.h" diff --git a/pan/general/file-util.cc b/pan/general/file-util.cc index 02e9ed1..9efa269 100644 --- a/pan/general/file-util.cc +++ b/pan/general/file-util.cc @@ -27,12 +27,12 @@ extern "C" #include #include #include - #include - #include #ifndef G_OS_WIN32 #include #endif } +#include +#include #include "debug.h" #include "log.h" diff --git a/pan/general/file-util.h b/pan/general/file-util.h index c125c8d..8c67639 100644 --- a/pan/general/file-util.h +++ b/pan/general/file-util.h @@ -25,9 +25,9 @@ extern "C" { #include #include - #include - #include } +#include +#include #include #define g_freopen freopen diff --git a/pan/general/line-reader.cc b/pan/general/line-reader.cc index afb9be8..6b80fc4 100644 --- a/pan/general/line-reader.cc +++ b/pan/general/line-reader.cc @@ -1,9 +1,7 @@ #include #include #include -extern "C"{ - #include -} +#include #include #include "file-util.h" #include "line-reader.h" diff --git a/pan/general/macros.h b/pan/general/macros.h index 6dcf908..b16230f 100644 --- a/pan/general/macros.h +++ b/pan/general/macros.h @@ -63,9 +63,6 @@ *** g_assert **/ -extern "C" -{ - #include -} +#include #endif diff --git a/pan/general/text-match.cc b/pan/general/text-match.cc index fcacbe2..d390de0 100644 --- a/pan/general/text-match.cc +++ b/pan/general/text-match.cc @@ -20,9 +20,9 @@ #include extern "C" { #include - #include - #include } +#include +#include #include "debug.h" #include "log.h" #include "text-match.h" diff --git a/pan/general/utf8-utils.cc b/pan/general/utf8-utils.cc index be79a13..fea6100 100644 --- a/pan/general/utf8-utils.cc +++ b/pan/general/utf8-utils.cc @@ -21,9 +21,7 @@ #include #include #include -extern "C" { #include -} #include #include #include diff --git a/pan/gui/actions.cc b/pan/gui/actions.cc index 520c08b..5ec397c 100644 --- a/pan/gui/actions.cc +++ b/pan/gui/actions.cc @@ -18,11 +18,9 @@ */ #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/body-pane.cc b/pan/gui/body-pane.cc index 53e9124..e9841e2 100644 --- a/pan/gui/body-pane.cc +++ b/pan/gui/body-pane.cc @@ -22,11 +22,9 @@ #include #include #include -extern "C" { - #include - #include "gtk-compat.h" - #include -} +#include "gtk-compat.h" +#include +#include #include #include #include diff --git a/pan/gui/dl-headers-ui.cc b/pan/gui/dl-headers-ui.cc index 5841651..e9f4b2d 100644 --- a/pan/gui/dl-headers-ui.cc +++ b/pan/gui/dl-headers-ui.cc @@ -18,11 +18,9 @@ */ #include -extern "C" { - #include - #include - #include "gtk-compat.h" -} +#include +#include +#include "gtk-compat.h" #include #include #include diff --git a/pan/gui/group-pane.cc b/pan/gui/group-pane.cc index 28ad581..3ff103e 100644 --- a/pan/gui/group-pane.cc +++ b/pan/gui/group-pane.cc @@ -20,10 +20,8 @@ #include #include #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include //#include #include diff --git a/pan/gui/group-prefs-dialog.cc b/pan/gui/group-prefs-dialog.cc index 677b07a..0d7df8b 100644 --- a/pan/gui/group-prefs-dialog.cc +++ b/pan/gui/group-prefs-dialog.cc @@ -18,14 +18,14 @@ */ #include -extern "C" { - #include - #include - #include "gtk-compat.h" +#include +#include #ifdef HAVE_GTKSPELL +extern "C" { #include -#endif } +#endif +#include "gtk-compat.h" #include #include #include diff --git a/pan/gui/group-prefs.cc b/pan/gui/group-prefs.cc index 3e9851b..b06a949 100644 --- a/pan/gui/group-prefs.cc +++ b/pan/gui/group-prefs.cc @@ -21,8 +21,8 @@ extern "C" { #include #include // chmod #include // chmod - #include } +#include #include #include #include diff --git a/pan/gui/gui.cc b/pan/gui/gui.cc index f79aa1e..9f8787e 100644 --- a/pan/gui/gui.cc +++ b/pan/gui/gui.cc @@ -25,9 +25,9 @@ extern "C" { #include // for chmod #include // for chmod - #include #include } +#include #include #include #include diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc index dc65a77..a4a9952 100644 --- a/pan/gui/header-pane.cc +++ b/pan/gui/header-pane.cc @@ -19,10 +19,9 @@ extern "C" { #include - #include - #include "gtk-compat.h" - #include "gtk-compat.h" } +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/log-ui.cc b/pan/gui/log-ui.cc index 7b11493..b204298 100644 --- a/pan/gui/log-ui.cc +++ b/pan/gui/log-ui.cc @@ -21,10 +21,8 @@ #include #include #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/pan-file-entry.cc b/pan/gui/pan-file-entry.cc index 705fc91..c67acf8 100644 --- a/pan/gui/pan-file-entry.cc +++ b/pan/gui/pan-file-entry.cc @@ -19,10 +19,8 @@ #include #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include "pad.h" #include "pan-file-entry.h" diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc index fb3a696..46c1a5d 100644 --- a/pan/gui/pan.cc +++ b/pan/gui/pan.cc @@ -24,9 +24,6 @@ #include extern "C" { - #include - #include "gtk-compat.h" - #include #include #include #include @@ -34,6 +31,9 @@ extern "C" { #include } +#include "gtk-compat.h" +#include +#include #ifdef G_OS_WIN32 #undef _WIN32_WINNT #define _WIN32_WINNT 0x0501 diff --git a/pan/gui/post-ui.cc b/pan/gui/post-ui.cc index 8769ec5..92c757d 100644 --- a/pan/gui/post-ui.cc +++ b/pan/gui/post-ui.cc @@ -23,14 +23,14 @@ #include #include extern "C" { - #include - #include - #include "gtk-compat.h" #include #ifdef HAVE_GTKSPELL #include #endif } +#include "gtk-compat.h" +#include +#include #include #include #include diff --git a/pan/gui/prefs-file.cc b/pan/gui/prefs-file.cc index bde7ef3..64c540f 100644 --- a/pan/gui/prefs-file.cc +++ b/pan/gui/prefs-file.cc @@ -24,8 +24,8 @@ extern "C" { #include // for chmod #include // for chmod - #include } +#include #include #include "prefs-file.h" diff --git a/pan/gui/prefs-ui.cc b/pan/gui/prefs-ui.cc index f7dc0f0..aac9ec1 100644 --- a/pan/gui/prefs-ui.cc +++ b/pan/gui/prefs-ui.cc @@ -18,10 +18,8 @@ */ #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/prefs.cc b/pan/gui/prefs.cc index fdbd908..64dd8da 100644 --- a/pan/gui/prefs.cc +++ b/pan/gui/prefs.cc @@ -23,10 +23,8 @@ #include #include #include -extern "C" { - #include - #include -} +#include +#include #include #include #include diff --git a/pan/gui/profiles-dialog.cc b/pan/gui/profiles-dialog.cc index 26ff029..cf8bd44 100644 --- a/pan/gui/profiles-dialog.cc +++ b/pan/gui/profiles-dialog.cc @@ -23,10 +23,8 @@ #include #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/progress-view.cc b/pan/gui/progress-view.cc index 241ad1c..43ef4f2 100644 --- a/pan/gui/progress-view.cc +++ b/pan/gui/progress-view.cc @@ -18,9 +18,7 @@ */ #include -extern "C" { - #include "gtk-compat.h" -} +#include "gtk-compat.h" #include #include #include "progress-view.h" diff --git a/pan/gui/save-attach-ui.cc b/pan/gui/save-attach-ui.cc index 0b08b6f..0e86a1b 100644 --- a/pan/gui/save-attach-ui.cc +++ b/pan/gui/save-attach-ui.cc @@ -18,10 +18,8 @@ */ #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/save-ui.cc b/pan/gui/save-ui.cc index 0f034e5..1df0cfb 100644 --- a/pan/gui/save-ui.cc +++ b/pan/gui/save-ui.cc @@ -18,10 +18,8 @@ */ #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include #include diff --git a/pan/gui/score-add-ui.cc b/pan/gui/score-add-ui.cc index e72bdb5..3b81167 100644 --- a/pan/gui/score-add-ui.cc +++ b/pan/gui/score-add-ui.cc @@ -20,9 +20,7 @@ #include #include #include -extern "C" { - #include -} +#include #include #include #include "hig.h" diff --git a/pan/gui/score-view-ui.cc b/pan/gui/score-view-ui.cc index d6c81c1..1327426 100644 --- a/pan/gui/score-view-ui.cc +++ b/pan/gui/score-view-ui.cc @@ -18,10 +18,8 @@ */ #include -extern "C" { - #include - #include "gtk-compat.h" -} +#include "gtk-compat.h" +#include #include #include "pad.h" #include "score-add-ui.h" diff --git a/pan/gui/server-ui.cc b/pan/gui/server-ui.cc index b42bc18..268114b 100644 --- a/pan/gui/server-ui.cc +++ b/pan/gui/server-ui.cc @@ -21,11 +21,9 @@ #include #include #include -extern "C" { - #include - #include - #include "gtk-compat.h" -} +#include +#include +#include "gtk-compat.h" #include #include diff --git a/pan/gui/task-pane.cc b/pan/gui/task-pane.cc index 4f77922..18a8f74 100644 --- a/pan/gui/task-pane.cc +++ b/pan/gui/task-pane.cc @@ -18,11 +18,9 @@ */ #include -extern "C" { - #include - #include - #include "gtk-compat.h" -} +#include +#include +#include "gtk-compat.h" #include #include #include diff --git a/pan/gui/url.cc b/pan/gui/url.cc index e1173ae..94ffb52 100644 --- a/pan/gui/url.cc +++ b/pan/gui/url.cc @@ -20,10 +20,8 @@ #include #include #include -extern "C" { - #include - #include -}; +#include +#include #include #include "url.h" diff --git a/pan/tasks/decoder.cc b/pan/tasks/decoder.cc index b4c21ae..f8cb6db 100644 --- a/pan/tasks/decoder.cc +++ b/pan/tasks/decoder.cc @@ -28,8 +28,8 @@ extern "C" { # define PROTOTYPES # include -# include }; +#include #include #include #include diff --git a/pan/tasks/encoder.cc b/pan/tasks/encoder.cc index 7960b84..5989059 100644 --- a/pan/tasks/encoder.cc +++ b/pan/tasks/encoder.cc @@ -31,10 +31,10 @@ extern "C" { #define PROTOTYPES #include -#include #include }; +#include #include #include #include diff --git a/pan/tasks/nntp.cc b/pan/tasks/nntp.cc index ceb1574..71c5cf1 100644 --- a/pan/tasks/nntp.cc +++ b/pan/tasks/nntp.cc @@ -22,10 +22,8 @@ #include #include // abort, atoi, strtoul #include // snprintf -extern "C" { - #include - #include -} +#include +#include #include #include #include diff --git a/pan/tasks/nzb.cc b/pan/tasks/nzb.cc index af890e5..14df6f6 100644 --- a/pan/tasks/nzb.cc +++ b/pan/tasks/nzb.cc @@ -24,9 +24,7 @@ #include #include #include -extern "C" { - #include -} +#include #include #include #include diff --git a/pan/tasks/socket-impl-gio.cc b/pan/tasks/socket-impl-gio.cc index d3339dd..7dc2ec1 100644 --- a/pan/tasks/socket-impl-gio.cc +++ b/pan/tasks/socket-impl-gio.cc @@ -31,9 +31,9 @@ extern "C" { #include - #include } +#include #include #include #include diff --git a/pan/tasks/socket-impl-main.cc b/pan/tasks/socket-impl-main.cc index c33edfd..688183c 100644 --- a/pan/tasks/socket-impl-main.cc +++ b/pan/tasks/socket-impl-main.cc @@ -30,10 +30,7 @@ //#include //#include -extern "C" -{ - #include -} +#include #include diff --git a/pan/tasks/socket-impl-openssl.cc b/pan/tasks/socket-impl-openssl.cc index b58e074..5b1b0b0 100644 --- a/pan/tasks/socket-impl-openssl.cc +++ b/pan/tasks/socket-impl-openssl.cc @@ -34,13 +34,14 @@ extern "C" { #include - #include #include #include #include #include } +#include + #include #include #include diff --git a/pan/tasks/socket-impl-openssl.h b/pan/tasks/socket-impl-openssl.h index e48cbae..eea41d4 100644 --- a/pan/tasks/socket-impl-openssl.h +++ b/pan/tasks/socket-impl-openssl.h @@ -27,10 +27,7 @@ #include //#include //#include -extern "C" -{ - #include -} +#include #include #include diff --git a/pan/tasks/socket.cc b/pan/tasks/socket.cc index 78d53fb..2c7a28d 100644 --- a/pan/tasks/socket.cc +++ b/pan/tasks/socket.cc @@ -21,9 +21,7 @@ #include #include #include -extern "C" { - #include -} +#include #include #include #include "socket.h" diff --git a/pan/tasks/task-article.cc b/pan/tasks/task-article.cc index 9c96b7d..1dc17ba 100644 --- a/pan/tasks/task-article.cc +++ b/pan/tasks/task-article.cc @@ -24,10 +24,7 @@ #include #include #include -extern "C" -{ - #include -} +#include #include #include #include diff --git a/pan/tasks/task-groups.cc b/pan/tasks/task-groups.cc index b8618d6..9b72369 100644 --- a/pan/tasks/task-groups.cc +++ b/pan/tasks/task-groups.cc @@ -20,9 +20,9 @@ #include #include extern "C" { - #include #include } +#include #include #include #include diff --git a/pan/tasks/task-post.cc b/pan/tasks/task-post.cc index bb80fb9..4ab9c2f 100644 --- a/pan/tasks/task-post.cc +++ b/pan/tasks/task-post.cc @@ -18,9 +18,7 @@ */ #include -extern "C" { - #include -} +#include #include "task-post.h" #include #include diff --git a/pan/tasks/task-upload.h b/pan/tasks/task-upload.h index 7bd4fe0..e5377c6 100644 --- a/pan/tasks/task-upload.h +++ b/pan/tasks/task-upload.h @@ -37,10 +37,10 @@ extern "C" { #define PROTOTYPES #include - #include - #include }; +#include +#include #include namespace pan diff --git a/pan/tasks/task-xover.cc b/pan/tasks/task-xover.cc index c3c8260..64b41a4 100644 --- a/pan/tasks/task-xover.cc +++ b/pan/tasks/task-xover.cc @@ -26,10 +26,10 @@ extern "C" #define PROTOTYPES #include #include -#include -#include } +#include +#include #include #include #include diff --git a/pan/tasks/task-xoverinfo.cc b/pan/tasks/task-xoverinfo.cc index c598bf8..9a9e488 100644 --- a/pan/tasks/task-xoverinfo.cc +++ b/pan/tasks/task-xoverinfo.cc @@ -24,10 +24,10 @@ extern "C" { #define PROTOTYPES #include #include - #include - #include #include } +#include +#include #include #include #include diff --git a/pan/usenet-utils/filter-info.cc b/pan/usenet-utils/filter-info.cc index f464428..6b1a5c9 100644 --- a/pan/usenet-utils/filter-info.cc +++ b/pan/usenet-utils/filter-info.cc @@ -18,10 +18,8 @@ */ #include -extern "C" { - #include - #include -} +#include +#include #include #include "filter-info.h" diff --git a/pan/usenet-utils/gnksa.cc b/pan/usenet-utils/gnksa.cc index db1f2c4..fb888d5 100644 --- a/pan/usenet-utils/gnksa.cc +++ b/pan/usenet-utils/gnksa.cc @@ -37,10 +37,10 @@ extern "C" { #include #include - #include #include } +#include #include #include #include diff --git a/pan/usenet-utils/gpg.cc b/pan/usenet-utils/gpg.cc index 4df4525..8755777 100644 --- a/pan/usenet-utils/gpg.cc +++ b/pan/usenet-utils/gpg.cc @@ -28,9 +28,9 @@ extern "C" { #include #include #include - #include - #include } +#include +#include #ifdef HAVE_GMIME_CRYPTO diff --git a/pan/usenet-utils/message-check.cc b/pan/usenet-utils/message-check.cc index a511556..461ce86 100644 --- a/pan/usenet-utils/message-check.cc +++ b/pan/usenet-utils/message-check.cc @@ -21,9 +21,7 @@ #include #include #include -extern "C" { #include -} #include #include #include diff --git a/pan/usenet-utils/rules-info.cc b/pan/usenet-utils/rules-info.cc index 1c03adc..91e78be 100644 --- a/pan/usenet-utils/rules-info.cc +++ b/pan/usenet-utils/rules-info.cc @@ -22,10 +22,8 @@ #include -extern "C" { - #include - #include -} +#include +#include #include #include "rules-info.h" diff --git a/pan/usenet-utils/scorefile.cc b/pan/usenet-utils/scorefile.cc index 8b56a2a..4b151f0 100644 --- a/pan/usenet-utils/scorefile.cc +++ b/pan/usenet-utils/scorefile.cc @@ -23,9 +23,7 @@ #include #include #include -extern "C" { - #include -} +#include #include #include #include diff --git a/pan/usenet-utils/ssl-utils.h b/pan/usenet-utils/ssl-utils.h index 2286250..0beb32f 100644 --- a/pan/usenet-utils/ssl-utils.h +++ b/pan/usenet-utils/ssl-utils.h @@ -43,9 +43,7 @@ #include #include #include -extern "C" { - #include -} +#include namespace pan { diff --git a/pan/usenet-utils/text-massager.cc b/pan/usenet-utils/text-massager.cc index 4fcd8d5..15a818b 100644 --- a/pan/usenet-utils/text-massager.cc +++ b/pan/usenet-utils/text-massager.cc @@ -22,9 +22,7 @@ #include #include #include -extern "C" { #include -} #include "text-massager.h" #include #include