Skip to content

Commit

Permalink
Fix reserved identifier violation. Closes issue alphacep#226
Browse files Browse the repository at this point in the history
Thanks to Markus Elfring
  • Loading branch information
nshmyrev committed Sep 23, 2020
1 parent 62885e8 commit 8d88b89
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/kaldi_recognizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef VOSK_KALDI_RECOGNIZER_H
#define VOSK_KALDI_RECOGNIZER_H

#include "base/kaldi-common.h"
#include "util/common-utils.h"
#include "fstext/fstext-lib.h"
Expand Down Expand Up @@ -80,3 +83,5 @@ class KaldiRecognizer {
KaldiRecognizerState state_;
string last_result_;
};

#endif /* VOSK_KALDI_RECOGNIZER_H */
6 changes: 3 additions & 3 deletions src/model.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef MODEL_H_
#define MODEL_H_
#ifndef VOSK_MODEL_H
#define VOSK_MODEL_H

#include "base/kaldi-common.h"
#include "fstext/fstext-lib.h"
Expand Down Expand Up @@ -86,4 +86,4 @@ class Model {
int ref_cnt_;
};

#endif /* MODEL_H_ */
#endif /* VOSK_MODEL_H */
6 changes: 3 additions & 3 deletions src/spk_model.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#ifndef SPK_MODEL_H_
#define SPK_MODEL_H_
#ifndef VOSK_SPK_MODEL_H
#define VOSK_SPK_MODEL_H

#include "base/kaldi-common.h"
#include "online2/online-feature-pipeline.h"
Expand Down Expand Up @@ -43,4 +43,4 @@ class SpkModel {
int ref_cnt_;
};

#endif /* SPK_MODEL_H_ */
#endif /* VOSK_SPK_MODEL_H */
6 changes: 3 additions & 3 deletions src/vosk_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

/* This header contains the C API for Vosk speech recognition system */

#ifndef _VOSK_API_H_
#define _VOSK_API_H_
#ifndef VOSK_API_H
#define VOSK_API_H

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -207,4 +207,4 @@ void vosk_set_log_level(int log_level);
}
#endif

#endif /* _VOSK_API_H_ */
#endif /* VOSK_API_H */

0 comments on commit 8d88b89

Please sign in to comment.