Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Windows build fix for C90

  • Loading branch information...
commit 3760d6b6ee3c0ddbbd47730f0a28ed5f0c8dbdd7 1 parent a3fea03
@johnj authored
Showing with 6 additions and 7 deletions.
  1. +6 −7 xcom.c
View
13 xcom.c
@@ -536,6 +536,12 @@ static char* php_xcom_avro_record_from_obj(zval *obj, char *json_schema TSRMLS_D
avro_schema_t schema = NULL;
avro_schema_error_t error = NULL;
avro_value_iface_t *iface;
+ zval **data;
+ avro_value_t field, branch;
+ avro_wrapped_buffer_t wbuf;
+ const char *f;
+ size_t record_size = 0;
+ int field_type, was_found = 0, branch_to_use;
avro_schema_from_json(json_schema, strlen(json_schema), &schema, &error);
@@ -555,13 +561,6 @@ static char* php_xcom_avro_record_from_obj(zval *obj, char *json_schema TSRMLS_D
return NULL;
}
- zval **data;
- avro_value_t field, branch;
- avro_wrapped_buffer_t wbuf;
- const char *f;
- size_t record_size = 0;
- int field_type, was_found = 0, branch_to_use;
-
avro_value_get_size(&val, &record_size);
for(i=0; i<record_size; ++i) {
Please sign in to comment.
Something went wrong with that request. Please try again.