Created
May 27, 2013 21:50
-
-
Save brooss/5659254 to your computer and use it in GitHub Desktop.
daala-encoder-example-mingw32-fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/examples/encoder_example.c b/examples/encoder_example.c | |
| index cdfaacb..293db4e 100644 | |
| --- a/examples/encoder_example.c | |
| +++ b/examples/encoder_example.c | |
| @@ -32,7 +32,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/ | |
| #if defined(_WIN32) | |
| # include <fcntl.h> | |
| # include <io.h> | |
| - | |
| +#endif | |
| +#if defined(_MSC_VER) | |
| static double rint(double _x){ | |
| return (int)(_x<0?_x-0.5:_x+0.5); | |
| } | |
| -- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment