lls: #ifndef --> #if in FF_API_ version guard

This commit is contained in:
Diego Biurrun 2013-02-28 21:31:26 +01:00
parent e8c52271c4
commit 4da950c0ae
2 changed files with 8 additions and 4 deletions

View File

@ -28,6 +28,7 @@
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#include "version.h"
#include "lls.h" #include "lls.h"
void avpriv_init_lls(LLSModel *m, int indep_count) void avpriv_init_lls(LLSModel *m, int indep_count)
@ -116,7 +117,7 @@ double avpriv_evaluate_lls(LLSModel *m, double *param, int order)
return out; return out;
} }
#ifndef FF_API_LLS_PRIVATE #if FF_API_LLS_PRIVATE
void av_init_lls(LLSModel *m, int indep_count) void av_init_lls(LLSModel *m, int indep_count)
{ {
return avpriv_init_lls(m, indep_count); return avpriv_init_lls(m, indep_count);
@ -133,7 +134,7 @@ double av_evaluate_lls(LLSModel *m, double *param, int order)
{ {
return avpriv_evaluate_lls(m, param, order); return avpriv_evaluate_lls(m, param, order);
} }
#endif #endif /* FF_API_LLS_PRIVATE */
#ifdef TEST #ifdef TEST

View File

@ -23,6 +23,8 @@
#ifndef AVUTIL_LLS_H #ifndef AVUTIL_LLS_H
#define AVUTIL_LLS_H #define AVUTIL_LLS_H
#include "version.h"
#define MAX_VARS 32 #define MAX_VARS 32
//FIXME avoid direct access to LLSModel from outside //FIXME avoid direct access to LLSModel from outside
@ -42,10 +44,11 @@ void avpriv_update_lls(LLSModel *m, double *param, double decay);
void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order); void avpriv_solve_lls(LLSModel *m, double threshold, unsigned short min_order);
double avpriv_evaluate_lls(LLSModel *m, double *param, int order); double avpriv_evaluate_lls(LLSModel *m, double *param, int order);
#ifndef FF_API_LLS_PRIVATE #if FF_API_LLS_PRIVATE
void av_init_lls(LLSModel *m, int indep_count); void av_init_lls(LLSModel *m, int indep_count);
void av_update_lls(LLSModel *m, double *param, double decay); void av_update_lls(LLSModel *m, double *param, double decay);
void av_solve_lls(LLSModel *m, double threshold, int min_order); void av_solve_lls(LLSModel *m, double threshold, int min_order);
double av_evaluate_lls(LLSModel *m, double *param, int order); double av_evaluate_lls(LLSModel *m, double *param, int order);
#endif #endif /* FF_API_LLS_PRIVATE */
#endif /* AVUTIL_LLS_H */ #endif /* AVUTIL_LLS_H */