@@ -131,7 +131,7 @@ Const AUTOPROXY_CONFIG_URL = 2
131
131
Const AUTOPROXY_DETECT_TYPE_DHCP = 1
132
132
Const AUTOPROXY_DETECT_TYPE_DNS = 2
133
133
#End If
134
- ' ===
134
+ ' === End AutoProxy
135
135
136
136
' === VBA-JSON Headers
137
137
' === VBA-UTC Headers
@@ -142,35 +142,37 @@ Private Declare Function utc_pclose Lib "libc.dylib" Alias "pclose" (ByVal utc_F
142
142
Private Declare Function utc_fread Lib "libc .dylib " Alias "fread " (ByVal utc_Buffer As String , ByVal utc_Size As Long , ByVal utc_Number As Long , ByVal utc_File As Long ) As Long
143
143
Private Declare Function utc_feof Lib "libc .dylib " Alias "feof " (ByVal utc_File As Long ) As Long
144
144
145
- Private Type utc_ShellResult
146
- utc_Output As String
147
- utc_ExitCode As Long
148
- End Type
149
-
150
- #ElseIf Win32 Then
145
+ #ElseIf VBA7 Then
151
146
152
147
' http://msdn.microsoft.com/en-us/library/windows/desktop/ms724421.aspx
153
148
' http://msdn.microsoft.com/en-us/library/windows/desktop/ms724949.aspx
154
149
' http://msdn.microsoft.com/en-us/library/windows/desktop/ms725485.aspx
155
- Private Declare Function utc_GetTimeZoneInformation Lib "kernel32 " Alias "GetTimeZoneInformation " _
150
+ Private Declare PtrSafe Function utc_GetTimeZoneInformation Lib "kernel32 " Alias "GetTimeZoneInformation " _
156
151
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION ) As Long
157
- Private Declare Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32 " Alias "SystemTimeToTzSpecificLocalTime " _
152
+ Private Declare PtrSafe Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32 " Alias "SystemTimeToTzSpecificLocalTime " _
158
153
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION , utc_lpUniversalTime As utc_SYSTEMTIME , utc_lpLocalTime As utc_SYSTEMTIME ) As Long
159
- Private Declare Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32 " Alias "TzSpecificLocalTimeToSystemTime " _
154
+ Private Declare PtrSafe Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32 " Alias "TzSpecificLocalTimeToSystemTime " _
160
155
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION , utc_lpLocalTime As utc_SYSTEMTIME , utc_lpUniversalTime As utc_SYSTEMTIME ) As Long
161
156
162
157
#Else
163
158
164
- Private Declare PtrSafe Function utc_GetTimeZoneInformation Lib "kernel32 " Alias "GetTimeZoneInformation " _
159
+ Private Declare Function utc_GetTimeZoneInformation Lib "kernel32 " Alias "GetTimeZoneInformation " _
165
160
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION ) As Long
166
- Private Declare PtrSafe Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32 " Alias "SystemTimeToTzSpecificLocalTime " _
161
+ Private Declare Function utc_SystemTimeToTzSpecificLocalTime Lib "kernel32 " Alias "SystemTimeToTzSpecificLocalTime " _
167
162
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION , utc_lpUniversalTime As utc_SYSTEMTIME , utc_lpLocalTime As utc_SYSTEMTIME ) As Long
168
- Private Declare PtrSafe Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32 " Alias "TzSpecificLocalTimeToSystemTime " _
163
+ Private Declare Function utc_TzSpecificLocalTimeToSystemTime Lib "kernel32 " Alias "TzSpecificLocalTimeToSystemTime " _
169
164
(utc_lpTimeZoneInformation As utc_TIME_ZONE_INFORMATION , utc_lpLocalTime As utc_SYSTEMTIME , utc_lpUniversalTime As utc_SYSTEMTIME ) As Long
170
165
171
166
#End If
172
167
173
- #If Win32 Or Win64 Then
168
+ #If Mac Then
169
+
170
+ Private Type utc_ShellResult
171
+ utc_Output As String
172
+ utc_ExitCode As Long
173
+ End Type
174
+
175
+ #Else
174
176
175
177
Private Type utc_SYSTEMTIME
176
178
utc_wYear As Integer
@@ -194,17 +196,21 @@ Private Type utc_TIME_ZONE_INFORMATION
194
196
End Type
195
197
196
198
#End If
197
- ' ===
199
+ ' === End VBA-UTC
198
200
199
201
#If Mac Then
200
- #ElseIf Win64 Then
202
+ #ElseIf VBA7 Then
203
+
201
204
Private Declare PtrSafe Sub json_CopyMemory Lib "kernel32 " Alias "RtlMoveMemory " _
202
205
(json_MemoryDestination As Any , json_MemorySource As Any , ByVal json_ByteLength As Long )
206
+
203
207
#Else
208
+
204
209
Private Declare Sub json_CopyMemory Lib "kernel32 " Alias "RtlMoveMemory " _
205
210
(json_MemoryDestination As Any , json_MemorySource As Any , ByVal json_ByteLength As Long )
211
+
206
212
#End If
207
- ' ===
213
+ ' === End VBA-JSON
208
214
209
215
#If Mac Then
210
216
Private Declare Function web_popen Lib "libc .dylib " Alias "popen " (ByVal Command As String , ByVal mode As String ) As Long
@@ -1683,7 +1689,8 @@ Public Function StringToAnsiBytes(web_Text As String) As Byte()
1683
1689
StringToAnsiBytes = web_AnsiBytes
1684
1690
End Function
1685
1691
1686
- #If Win32 Or Win64 Then
1692
+ #If Mac Then
1693
+ #Else
1687
1694
Private Function web_AnsiBytesToBase64 (web_Bytes() As Byte )
1688
1695
' Use XML to convert to Base64
1689
1696
Dim web_XmlObj As Object
@@ -1728,7 +1735,7 @@ Private Function web_GetUrlEncodedKeyValue(Key As Variant, Value As Variant) As
1728
1735
End Function
1729
1736
1730
1737
''
1731
- ' VBA-JSON v1.0.1
1738
+ ' VBA-JSON v1.0.2
1732
1739
' (c) Tim Hall - https://github.com/VBA-tools/VBA-JSON
1733
1740
'
1734
1741
' JSON Converter for VBA
@@ -2335,7 +2342,7 @@ Private Function json_BufferToString(ByRef json_buffer As String, ByVal json_Buf
2335
2342
#End If
2336
2343
End Function
2337
2344
2338
- #If Win64 Then
2345
+ #If VBA7 Then
2339
2346
Private Function json_UnsignedAdd (json_Start As LongPtr , json_Increment As Long ) As LongPtr
2340
2347
#Else
2341
2348
Private Function json_UnsignedAdd (json_Start As Long , json_Increment As Long ) As Long
@@ -2351,7 +2358,7 @@ Private Function json_UnsignedAdd(json_Start As Long, json_Increment As Long) As
2351
2358
End Function
2352
2359
2353
2360
''
2354
- ' VBA-UTC v1.0.0
2361
+ ' VBA-UTC v1.0.1
2355
2362
' (c) Tim Hall - https://github.com/VBA-tools/VBA-UtcConverter
2356
2363
'
2357
2364
' UTC/ISO 8601 Converter for VBA
0 commit comments