Removed feature test macro definitions from source files
This commit is contained in:
parent
e0e96977b3
commit
e574a6d0dd
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _IMAGE_CONFIG
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -29,6 +26,8 @@
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "thumbs.h"
|
#include "thumbs.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#define _IMAGE_CONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
void cleanup(void);
|
void cleanup(void);
|
||||||
|
|
5
image.c
5
image.c
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _IMAGE_CONFIG
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
@ -27,6 +24,8 @@
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#define _IMAGE_CONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if HAVE_LIBEXIF
|
#if HAVE_LIBEXIF
|
||||||
|
|
5
main.c
5
main.c
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _MAPPINGS_CONFIG
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -41,6 +38,8 @@
|
||||||
#include "thumbs.h"
|
#include "thumbs.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
|
#define _MAPPINGS_CONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _IMAGE_CONFIG
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -26,6 +23,8 @@
|
||||||
|
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#define _IMAGE_CONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
options_t _options;
|
options_t _options;
|
||||||
|
|
5
thumbs.c
5
thumbs.c
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _THUMBS_CONFIG
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -29,6 +26,8 @@
|
||||||
|
|
||||||
#include "thumbs.h"
|
#include "thumbs.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#define _THUMBS_CONFIG
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#if HAVE_LIBEXIF
|
#if HAVE_LIBEXIF
|
||||||
|
|
2
util.c
2
util.c
|
@ -16,8 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
7
window.c
7
window.c
|
@ -16,9 +16,6 @@
|
||||||
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
* along with sxiv. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _POSIX_C_SOURCE 200112L
|
|
||||||
#define _WINDOW_CONFIG
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
@ -28,9 +25,11 @@
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "config.h"
|
|
||||||
#include "icon/data.h"
|
#include "icon/data.h"
|
||||||
|
|
||||||
|
#define _WINDOW_CONFIG
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
H_TEXT_PAD = 5,
|
H_TEXT_PAD = 5,
|
||||||
V_TEXT_PAD = 1
|
V_TEXT_PAD = 1
|
||||||
|
|
Loading…
Reference in a new issue