Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Jul 24, 2019
1 parent 07fc2f6 commit afedc42
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
*.egg-info/
*.so
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,10 @@ sudo: false
language: python
python:
- "3.7"
os:
- linux
- osx
- windows
install:
- pip install six blist unittest2 pytz
- pip install -e .
Expand Down
6 changes: 0 additions & 6 deletions README.md
Expand Up @@ -5,12 +5,6 @@
- Original author: [xtao (Xu Tao)](https://github.com/xtao)
- Inspired by [Pandas' ujson](https://github.com/pandas-dev/pandas/tree/master/pandas/_libs/src/ujson/python)

## Environment

Test on Ubuntu 18.04 with Python3.7

Known issue: macOS support.

## How to install

```sh
Expand Down
2 changes: 1 addition & 1 deletion python/objToJSON.c
Expand Up @@ -92,7 +92,7 @@ struct PyDictIterState
//#define PRINTMARK() fprintf(stderr, "%s: MARK(%d)\n", __FILE__, __LINE__)
#define PRINTMARK()

void initObjToJSON(void)
void *initObjToJSON(void)
{
PyObject* mod_decimal = PyImport_ImportModule("decimal");
if (mod_decimal)
Expand Down
2 changes: 1 addition & 1 deletion python/ujson.c
Expand Up @@ -41,7 +41,7 @@ Numeric decoder derived from from TCL library

/* objToJSON */
PyObject* objToJSON(PyObject* self, PyObject *args, PyObject *kwargs);
void initObjToJSON(void);
void *initObjToJSON(void);

/* JSONToObj */
PyObject* JSONToObj(PyObject* self, PyObject *args, PyObject *kwargs);
Expand Down

0 comments on commit afedc42

Please sign in to comment.