-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, switch to using config.h instead of compiler flags.
- Loading branch information
Showing
17 changed files
with
106 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#cmakedefine USE_FAAD2 | ||
#cmakedefine USE_ID3V2LIB | ||
#cmakedefine USE_COLOR | ||
#cmakedefine USE_FAST_MATH | ||
#cmakedefine USE_THREADS | ||
|
||
#cmakedefine HAVE_PTHREAD_SETNAME_NP | ||
#cmakedefine HAVE_STRNDUP | ||
#cmakedefine HAVE_BUILTIN_COMPLEX | ||
#cmakedefine HAVE_CMPLXF | ||
#cmakedefine HAVE_IMAGINARY_I | ||
|
||
#ifndef HAVE_CMPLXF | ||
#ifdef HAVE_BUILTIN_COMPLEX | ||
#define CMPLXF(x,y) __builtin_complex((float)(x), (float)(y)) | ||
#endif | ||
#ifdef HAVE_IMAGINARY_I | ||
#define CMPLXF(x,y) ((float complex)((float)(x) + _Imaginary_I * (float)(y))) | ||
#endif | ||
#endif /* HAVE_CMPLXF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#pragma once | ||
|
||
#include "config.h" | ||
|
||
#include <stdint.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#include "config.h" | ||
|
||
#include <assert.h> | ||
#include <stdint.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include "config.h" | ||
#include "defines.h" | ||
|
||
#ifdef USE_FAST_MATH | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#pragma once | ||
|
||
#include "config.h" | ||
|
||
#ifdef HAVE_FAAD2 | ||
#include <ao/ao.h> | ||
#include <neaacdec.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#include "config.h" | ||
|
||
#include <assert.h> | ||
|
||
#ifdef HAVE_NEON | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* A replacement function, for systems that lack strndup. | ||
Copyright (C) 1996-1998, 2001-2003, 2005-2007, 2009-2017 Free Software | ||
Foundation, Inc. | ||
This program is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License as published by the | ||
Free Software Foundation; either version 2, or (at your option) any | ||
later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, see <http://www.gnu.org/licenses/>. */ | ||
|
||
#include "config.h" | ||
|
||
#include <string.h> | ||
#include <stdlib.h> | ||
|
||
#ifndef HAVE_STRNDUP | ||
char *strndup (char const *s, size_t n) | ||
{ | ||
size_t len = strnlen (s, n); | ||
char *new = malloc (len + 1); | ||
|
||
if (new == NULL) | ||
return NULL; | ||
|
||
new[len] = '\0'; | ||
return memcpy (new, s, len); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#pragma once | ||
|
||
#include "config.h" | ||
|
||
#include <complex.h> | ||
#ifdef USE_THREADS | ||
#include <pthread.h> | ||
|