Support building on Windows

Jansson now builds correctly with Visual C++ Express 2010.
This commit is contained in:
Petri Lehtinen
2012-04-29 22:09:29 +03:00
parent 4601bf71e5
commit ff0c05b8f1
12 changed files with 99 additions and 102 deletions

View File

@@ -11,7 +11,7 @@
#include <stdlib.h>
#include <string.h>
#include <jansson.h>
#include "jansson.h"
#include "hashtable.h"
#include "jansson_private.h"
#include "utf.h"
@@ -779,7 +779,7 @@ static json_t *json_real_copy(json_t *real)
double json_number_value(const json_t *json)
{
if(json_is_integer(json))
return json_integer_value(json);
return (double)json_integer_value(json);
else if(json_is_real(json))
return json_real_value(json);
else