Skip to content

Commit 329db0c

Browse files
committed
Update VBA-JSON to v2.3.1 and fix libc issue
1 parent 6d40fd5 commit 329db0c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/WebHelpers.bas

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ Const AUTOPROXY_DETECT_TYPE_DNS = 2
147147
#If VBA7 Then
148148

149149
' 64-bit Mac (2016)
150-
Private Declare PtrSafe Function utc_popen Lib "libc.dylib" Alias "popen" _
150+
Private Declare PtrSafe Function utc_popen Lib "/usr/lib/libc.dylib" Alias "popen" _
151151
(ByVal utc_Command As String, ByVal utc_Mode As String) As LongPtr
152-
Private Declare PtrSafe Function utc_pclose Lib "libc.dylib" Alias "pclose" _
152+
Private Declare PtrSafe Function utc_pclose Lib "/usr/lib/libc.dylib" Alias "pclose" _
153153
(ByVal utc_File As LongPtr) As LongPtr
154-
Private Declare PtrSafe Function utc_fread Lib "libc.dylib" Alias "fread" _
154+
Private Declare PtrSafe Function utc_fread Lib "/usr/lib/libc.dylib" Alias "fread" _
155155
(ByVal utc_Buffer As String, ByVal utc_Size As LongPtr, ByVal utc_Number As LongPtr, ByVal utc_File As LongPtr) As LongPtr
156-
Private Declare PtrSafe Function utc_feof Lib "libc.dylib" Alias "feof" _
156+
Private Declare PtrSafe Function utc_feof Lib "/usr/lib/libc.dylib" Alias "feof" _
157157
(ByVal utc_File As LongPtr) As LongPtr
158158

159159
#Else
@@ -256,10 +256,10 @@ Public JsonOptions As json_Options
256256

257257
#If Mac Then
258258
#If VBA7 Then
259-
Private Declare PtrSafe Function web_popen Lib "libc.dylib" Alias "popen" (ByVal web_Command As String, ByVal web_Mode As String) As LongPtr
260-
Private Declare PtrSafe Function web_pclose Lib "libc.dylib" Alias "pclose" (ByVal web_File As LongPtr) As LongPtr
261-
Private Declare PtrSafe Function web_fread Lib "libc.dylib" Alias "fread" (ByVal web_OutStr As String, ByVal web_Size As LongPtr, ByVal web_Items As LongPtr, ByVal web_Stream As LongPtr) As LongPtr
262-
Private Declare PtrSafe Function web_feof Lib "libc.dylib" Alias "feof" (ByVal web_File As LongPtr) As LongPtr
259+
Private Declare PtrSafe Function web_popen Lib "/usr/lib/libc.dylib" Alias "popen" (ByVal web_Command As String, ByVal web_Mode As String) As LongPtr
260+
Private Declare PtrSafe Function web_pclose Lib "/usr/lib/libc.dylib" Alias "pclose" (ByVal web_File As LongPtr) As LongPtr
261+
Private Declare PtrSafe Function web_fread Lib "/usr/lib/libc.dylib" Alias "fread" (ByVal web_OutStr As String, ByVal web_Size As LongPtr, ByVal web_Items As LongPtr, ByVal web_Stream As LongPtr) As LongPtr
262+
Private Declare PtrSafe Function web_feof Lib "/usr/lib/libc.dylib" Alias "feof" (ByVal web_File As LongPtr) As LongPtr
263263
#Else
264264
Private Declare Function web_popen Lib "libc.dylib" Alias "popen" (ByVal web_Command As String, ByVal web_Mode As String) As Long
265265
Private Declare Function web_pclose Lib "libc.dylib" Alias "pclose" (ByVal web_File As Long) As Long
@@ -1977,7 +1977,7 @@ Private Function web_GetUrlEncodedKeyValue(Key As Variant, Value As Variant, Opt
19771977
End Function
19781978

19791979
''
1980-
' VBA-JSON v2.3.0
1980+
' VBA-JSON v2.3.1
19811981
' (c) Tim Hall - https://github.com/VBA-tools/VBA-JSON
19821982
'
19831983
' JSON Converter for VBA
@@ -2726,7 +2726,7 @@ Private Function json_BufferToString(ByRef json_Buffer As String, ByVal json_Buf
27262726
End Function
27272727

27282728
''
2729-
' VBA-UTC v1.0.5
2729+
' VBA-UTC v1.0.6
27302730
' (c) Tim Hall - https://github.com/VBA-tools/VBA-UtcConverter
27312731
'
27322732
' UTC/ISO 8601 Converter for VBA

0 commit comments

Comments
 (0)