History

sndfile: drop unnecessary HAVE_SNDFILE tests

These files are only compiled if HAVE_SNDFILE is defined. There is no need to test it again within each file.

Mans Rullgard committed 6 years ago

Commit 632942f1 parent b50a5fa10 files · +0 −40Browse files

Unified · Split

10 files
  1. src/caf.c +0 −4
  2. src/fap.c +0 −4
  3. src/mat4.c +0 −4
  4. src/mat5.c +0 −4
  5. src/paf.c +0 −4
  6. src/pvf.c +0 −4
  7. src/sd2.c +0 −4
  8. src/sndfile.c +0 −4
  9. src/w64.c +0 −4
  10. src/xi.c +0 −4
src/caf.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(caf)
2321 {
2422 static char const * const names[] = {"caf", NULL};
@@ -35,5 +33,3 @@ LSX_FORMAT_HANDLER(caf) · 10 unmodified lines
3533 handler.write_formats = write_encodings;
3634 return &handler;
3735 }
38−
39−#endif
src/fap.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(fap)
2321 {
2422 static char const * const names[] = {"fap", NULL};
@@ -31,5 +29,3 @@ LSX_FORMAT_HANDLER(fap) · 6 unmodified lines
3129 handler.write_formats = write_encodings;
3230 return &handler;
3331 }
34−
35−#endif
src/mat4.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(mat4)
2321 {
2422 static char const * const names[] = {"mat4", "mat", NULL};
@@ -33,5 +31,3 @@ LSX_FORMAT_HANDLER(mat4) · 8 unmodified lines
3331 handler.write_formats = write_encodings;
3432 return &handler;
3533 }
36−
37−#endif
src/mat5.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(mat5)
2321 {
2422 static char const * const names[] = {"mat5", NULL};
@@ -33,5 +31,3 @@ LSX_FORMAT_HANDLER(mat5) · 8 unmodified lines
3331 handler.write_formats = write_encodings;
3432 return &handler;
3533 }
36−
37−#endif
src/paf.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(paf)
2321 {
2422 static char const * const names[] = {"paf", NULL};
@@ -31,5 +29,3 @@ LSX_FORMAT_HANDLER(paf) · 6 unmodified lines
3129 handler.write_formats = write_encodings;
3230 return &handler;
3331 }
34−
35−#endif
src/pvf.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(pvf)
2321 {
2422 static char const * const names[] = {"pvf", NULL};
@@ -30,5 +28,3 @@ LSX_FORMAT_HANDLER(pvf) · 5 unmodified lines
3028 handler.write_formats = write_encodings;
3129 return &handler;
3230 }
33−
34−#endif
src/sd2.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(sd2)
2321 {
2422 static char const * const names[] = {"sd2", NULL};
@@ -30,5 +28,3 @@ LSX_FORMAT_HANDLER(sd2) · 5 unmodified lines
3028 handler.write_formats = write_encodings;
3129 return &handler;
3230 }
33−
34−#endif
src/sndfile.c+0−4
@@ -20,8 +20,6 @@ · 19 unmodified lines
2020
2121 #include "sox_i.h"
2222
23−#ifdef HAVE_SNDFILE
24−
2523 #include <assert.h>
2624 #include <stdio.h>
2725 #include <string.h>
@@ -536,5 +534,3 @@ LSX_FORMAT_HANDLER(sndfile) · 508 unmodified lines
536534
537535 return &format;
538536 }
539−
540−#endif
src/w64.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(w64)
2321 {
2422 static char const * const names[] = {"w64", NULL};
@@ -39,5 +37,3 @@ LSX_FORMAT_HANDLER(w64) · 14 unmodified lines
3937 handler.write_formats = write_encodings;
4038 return &handler;
4139 }
42−
43−#endif
src/xi.c+0−4
@@ -17,8 +17,6 @@ · 16 unmodified lines
1717
1818 #include "sox_i.h"
1919
20−#if defined HAVE_SNDFILE
21−
2220 LSX_FORMAT_HANDLER(xi)
2321 {
2422 static char const * const names[] = {"xi", NULL};
@@ -30,5 +28,3 @@ LSX_FORMAT_HANDLER(xi) · 5 unmodified lines
3028 handler.write_formats = write_encodings;
3129 return &handler;
3230 }
33−
34−#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t