Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit 4590f6c

Browse files
committed
HHVM-163: Make sure the new changes also compile under HHVM 3.9 and 3.10
1 parent 49549a2 commit 4590f6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bson.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "bson.h"
2323
#include "utils.h"
24+
#include "mongodb.h"
2425
#include <iostream>
2526

2627
#include "src/MongoDB/BSON/Binary.h"
@@ -111,7 +112,9 @@ void VariantToBsonConverter::convertElement(bson_t *bson, const char *key, Varia
111112
convertString(bson, key, v.toString());
112113
break;
113114
case KindOfArray:
115+
#if HIPPO_HHVM_VERSION >= 31100
114116
case KindOfPersistentArray:
117+
#endif
115118
case KindOfObject:
116119
convertDocument(bson, key, v);
117120
break;

0 commit comments

Comments
 (0)