Skip to content

Commit

Permalink
fix test_qsort_r; remove redundant TEST_NETPBM and TEST_NETPBM_MAKE
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Jul 16, 2020
1 parent 2528503 commit 9f28654
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions include/astrometry/os-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
#ifndef OS_FEATURES_H
#define OS_FEATURES_H

#ifndef DONT_INCLUDE_OS_FEATURES_CONFIG_H
#include "astrometry/os-features-config.h"
#endif

// Features we use that aren't standard across all supported platforms

Expand Down
5 changes: 2 additions & 3 deletions util/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ makefile.os-features: os-features-test.c
( \
echo "# This file is generated by util/Makefile."; \
(($(CC) -o os-features-test-netpbm-make \
$(CPPFLAGS) $(CFLAGS) -DTEST_NETPBM_MAKE $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features-makefile.log && \
./os-features-test-netpbm-make >> os-features-makefile.log && \
$(CPPFLAGS) $(CFLAGS) -DTEST_NETPBM $(NETPBM_INC_ORIG) $^ $(LDFLAGS) $(NETPBM_LIB_ORIG) >> os-features-makefile.log && \
./os-features-test-netpbm >> os-features-makefile.log && \
echo "HAVE_NETPBM := yes") \
|| (echo "# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM."; \
echo "# See os-features-makefile.log for details."; \
Expand Down Expand Up @@ -333,7 +333,6 @@ config: $(INCLUDE_DIR)/os-features-config.h makefile.os-features

ALL_TARGETS := os-features-test.o \
os-features-test-netpbm \
os-features-test-netpbm-make \
$(INCLUDE_DIR)/os-features-config.h

ifndef NO_QFITS
Expand Down
3 changes: 1 addition & 2 deletions util/os-features-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
#include <stdlib.h>
#include <stdio.h>

#if defined(TEST_NETPBM) || defined(TEST_NETPBM_MAKE)
#if defined(TEST_NETPBM)
#include <pam.h>
int main(int argc, char** args) {
struct pam img;
pm_init(args[0], 0);
//printf("#define HAVE_NETPBM 1\n");
img.size = 42;
printf("the answer is %i\n", img.size);
return 0;
Expand Down
2 changes: 1 addition & 1 deletion util/test_qsort_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "cutest.h"

#include "os-features.h"
#include "ioutils.h"

char* true_baton_val = "MYBATON";

Expand Down

0 comments on commit 9f28654

Please sign in to comment.