Skip to content

Commit

Permalink
changing includes fixes weird undefined symbol error in python
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Mar 19, 2022
1 parent 1fc68a8 commit fa7cb7e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions python/lttoolbox.i.in
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,9 @@
#include <lttoolbox/my_stdio.h>
#include <lttoolbox/lt_locale.h>

#include <getopt.h>
#include <unicode/ustdio.h>

// no idea why this is required, but apparently it is
int32_t u_sprintf(UChar* buf, const char* pat, ...) {
va_list arg;
va_start(arg, pat);
int32_t ret = u_vsprintf(buf, pat, arg);
va_end(arg);
return ret;
}
#include <getopt.h>

class FST: public FSTProcessor
{
Expand Down

0 comments on commit fa7cb7e

Please sign in to comment.