Krolyxon
Commit e574a6d

Branches

Refs →

nsxive574a6d

Removed feature test macro definitions from source files

Author
Bert Münnich
Date
2015-10-28 21:37 +0100
Parent
e0e9697
Commit
e574a6d0dd209cba5e61f23c992a8d6d9bd1fc90

+13 −21

7 files changed

  1. M commands.c +2 −3
  2. M image.c +2 −3
  3. M main.c +2 −3
  4. M options.c +2 −3
  5. M thumbs.c +2 −3
  6. M util.c +0 −2
  7. M window.c +3 −4
M commands.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _IMAGE_CONFIG
21−
2219 #include <stdlib.h>
2320 #include <string.h>
2421 #include <unistd.h>
@@ -29,6 +26,8 @@
2926 #include "options.h"
3027 #include "thumbs.h"
3128 #include "util.h"
29+
30+#define _IMAGE_CONFIG
3231 #include "config.h"
3332
3433 void cleanup(void);
M image.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _IMAGE_CONFIG
21−
2219 #include <stdlib.h>
2320 #include <string.h>
2421 #include <sys/types.h>
@@ -27,6 +24,8 @@
2724 #include "image.h"
2825 #include "options.h"
2926 #include "util.h"
27+
28+#define _IMAGE_CONFIG
3029 #include "config.h"
3130
3231 #if HAVE_LIBEXIF
M main.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _MAPPINGS_CONFIG
21−
2219 #include <stdlib.h>
2320 #include <stdio.h>
2421 #include <stdarg.h>
@@ -41,6 +38,8 @@
4138 #include "thumbs.h"
4239 #include "util.h"
4340 #include "window.h"
41+
42+#define _MAPPINGS_CONFIG
4443 #include "config.h"
4544
4645 enum {
M options.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _IMAGE_CONFIG
21−
2219 #include <stdlib.h>
2320 #include <string.h>
2421 #include <stdio.h>
@@ -26,6 +23,8 @@
2623
2724 #include "options.h"
2825 #include "util.h"
26+
27+#define _IMAGE_CONFIG
2928 #include "config.h"
3029
3130 options_t _options;
M thumbs.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _THUMBS_CONFIG
21−
2219 #include <stdio.h>
2320 #include <stdlib.h>
2421 #include <string.h>
@@ -29,6 +26,8 @@
2926
3027 #include "thumbs.h"
3128 #include "util.h"
29+
30+#define _THUMBS_CONFIG
3231 #include "config.h"
3332
3433 #if HAVE_LIBEXIF
M util.c View
@@ -16,8 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−
2119 #include <stdlib.h>
2220 #include <string.h>
2321 #include <sys/types.h>
M window.c View
@@ -16,9 +16,6 @@
1616 * along with sxiv. If not, see <http://www.gnu.org/licenses/>.
1717 */
1818
19−#define _POSIX_C_SOURCE 200112L
20−#define _WINDOW_CONFIG
21−
2219 #include <stdlib.h>
2320 #include <string.h>
2421 #include <locale.h>
@@ -28,9 +25,11 @@
2825 #include "options.h"
2926 #include "util.h"
3027 #include "window.h"
31−#include "config.h"
3228 #include "icon/data.h"
3329
30+#define _WINDOW_CONFIG
31+#include "config.h"
32+
3433 enum {
3534 H_TEXT_PAD = 5,
3635 V_TEXT_PAD = 1