Skip to content

Commit 7571c76

Browse files
committed
Test programs: Belated change of inclusion spec: Due to the movement of the source files into a library-specific subdirectory, as per mpaland#58, there is no longer the risk of clashing with glibc's printf.h, so the test programs can use <foo.h>-style inclusion rather than "../path/to/foo.h"-style.
1 parent 67e7bbe commit 7571c76

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

test/aliasing.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#include <printf_config.h>
2-
3-
// Note: If we include <printf.h>, that will likely get us the
4-
// the file /usr/include/printf.h on Linux systems
5-
#include "../src/printf/printf.h"
2+
#include <printf/printf.h>
63

74
int strcmp_(const char* lhs, const char* rhs)
85
{

test/test_suite.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
///////////////////////////////////////////////////////////////////////////////
2828

2929
#define PRINTF_VISIBILITY static
30-
// use functions in own test namespace to avoid stdio conflicts
31-
#include "../src/printf/printf.c"
30+
#include <printf/printf.c>
3231

3332
// use the 'catch' test framework
3433
#define CATCH_CONFIG_MAIN

0 commit comments

Comments
 (0)