Skip to content

Commit

Permalink
fixed compile error.
Browse files Browse the repository at this point in the history
```bash
# compile for android.
$ ./build_native.py
```

Error message as follow:

```
ssize_tjni/../../cocos2d/cocos/./3d/CCBundleReader.cpp:94:23: error: return type of out-of-line
      definition of 'cocos2d::BundleReader::tell' differs from that in the declaration
ssize_t BundleReader::tell()
                      ^
jni/../../cocos2d/cocos/./3d/CCBundleReader.h:90:14: note: previous declaration is here
    long int tell();
             ^
1 error generated.
```
  • Loading branch information
chenguangqi committed Jul 19, 2014
1 parent 6fe58b4 commit 8b4953b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/3d/CCBundleReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class BundleReader: public cocos2d::Ref
/**
* Returns the position of the file pointer.
*/
long int tell();
ssize_t tell();

/**
* Sets the position of the file pointer.
Expand Down

0 comments on commit 8b4953b

Please sign in to comment.