Skip to content

Commit ae4ad1a

Browse files
committed
msvc: update bitcoin_config.h defines
While not many of these are used, some, like HAVE_DLLEXPORT_ATTRIBUTE, are used when creating libbitcoinconsensus. Given this file is static, also just remove everything that is commented out.
1 parent 43bf824 commit ae4ad1a

File tree

1 file changed

+4
-129
lines changed

1 file changed

+4
-129
lines changed

build_msvc/bitcoin_config.h

Lines changed: 4 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
#ifndef BITCOIN_BITCOIN_CONFIG_H
66
#define BITCOIN_BITCOIN_CONFIG_H
77

8-
/* Define if building universal (internal helper macro) */
9-
/* #undef AC_APPLE_UNIVERSAL_BUILD */
10-
118
/* Version Build */
129
#define CLIENT_VERSION_BUILD 0
1310

@@ -59,14 +56,11 @@
5956
/* define if the Boost::Unit_Test_Framework library is available */
6057
#define HAVE_BOOST_UNIT_TEST_FRAMEWORK /**/
6158

62-
/* Define to 1 if you have the <byteswap.h> header file. */
63-
/* #undef HAVE_BYTESWAP_H */
64-
6559
/* Define this symbol if the consensus lib has been built */
6660
#define HAVE_CONSENSUS_LIB 1
6761

68-
/* define if the compiler supports basic C++11 syntax */
69-
#define HAVE_CXX11 1
62+
/* define if the compiler supports basic C++17 syntax */
63+
#define HAVE_CXX17 1
7064

7165
/* Define to 1 if you have the declaration of `be16toh', and to 0 if you
7266
don't. */
@@ -144,37 +138,12 @@
144138
don't. */
145139
#define HAVE_DECL_STRNLEN 1
146140

147-
/* Define to 1 if you have the <dlfcn.h> header file. */
148-
/* #undef HAVE_DLFCN_H */
149-
150-
/* Define to 1 if you have the <endian.h> header file. */
151-
/* #undef HAVE_ENDIAN_H */
152-
153-
/* Define to 1 if the system has the `dllexport' function attribute */
154-
#define HAVE_FUNC_ATTRIBUTE_DLLEXPORT 1
155-
156-
/* Define to 1 if the system has the `dllimport' function attribute */
157-
#define HAVE_FUNC_ATTRIBUTE_DLLIMPORT 1
158-
159-
/* Define to 1 if the system has the `visibility' function attribute */
160-
#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1
161-
162-
/* Define this symbol if the BSD getentropy system call is available */
163-
/* #undef HAVE_GETENTROPY */
164-
165-
/* Define this symbol if the BSD getentropy system call is available with
166-
sys/random.h */
167-
/* #undef HAVE_GETENTROPY_RAND */
141+
/* Define if the dllexport attribute is supported. */
142+
#define HAVE_DLLEXPORT_ATTRIBUTE 1
168143

169144
/* Define to 1 if you have the <inttypes.h> header file. */
170145
#define HAVE_INTTYPES_H 1
171146

172-
/* Define this symbol if you have malloc_info */
173-
/* #undef HAVE_MALLOC_INFO */
174-
175-
/* Define this symbol if you have mallopt with M_ARENA_MAX */
176-
/* #undef HAVE_MALLOPT_ARENA_MAX */
177-
178147
/* Define to 1 if you have the <memory.h> header file. */
179148
#define HAVE_MEMORY_H 1
180149

@@ -187,18 +156,6 @@
187156
/* Define to 1 if you have the <miniupnpc/upnperrors.h> header file. */
188157
#define HAVE_MINIUPNPC_UPNPERRORS_H 1
189158

190-
/* Define this symbol if you have MSG_DONTWAIT */
191-
/* #undef HAVE_MSG_DONTWAIT */
192-
193-
/* Define this symbol if you have MSG_NOSIGNAL */
194-
/* #undef HAVE_MSG_NOSIGNAL */
195-
196-
/* Define if you have POSIX threads libraries and header files. */
197-
//#define HAVE_PTHREAD 1
198-
199-
/* Have PTHREAD_PRIO_INHERIT. */
200-
//#define HAVE_PTHREAD_PRIO_INHERIT 1
201-
202159
/* Define to 1 if you have the <stdint.h> header file. */
203160
#define HAVE_STDINT_H 1
204161

@@ -208,45 +165,18 @@
208165
/* Define to 1 if you have the <stdlib.h> header file. */
209166
#define HAVE_STDLIB_H 1
210167

211-
/* Define to 1 if you have the `strerror_r' function. */
212-
/* #undef HAVE_STRERROR_R */
213-
214168
/* Define to 1 if you have the <strings.h> header file. */
215169
#define HAVE_STRINGS_H 1
216170

217171
/* Define to 1 if you have the <string.h> header file. */
218172
#define HAVE_STRING_H 1
219173

220-
/* Define this symbol if the BSD sysctl(KERN_ARND) is available */
221-
/* #undef HAVE_SYSCTL_ARND */
222-
223-
/* Define to 1 if you have the <sys/endian.h> header file. */
224-
/* #undef HAVE_SYS_ENDIAN_H */
225-
226-
/* Define this symbol if the Linux getrandom system call is available */
227-
/* #undef HAVE_SYS_GETRANDOM */
228-
229-
/* Define to 1 if you have the <sys/prctl.h> header file. */
230-
/* #undef HAVE_SYS_PRCTL_H */
231-
232-
/* Define to 1 if you have the <sys/select.h> header file. */
233-
/* #undef HAVE_SYS_SELECT_H */
234-
235174
/* Define to 1 if you have the <sys/stat.h> header file. */
236175
#define HAVE_SYS_STAT_H 1
237176

238177
/* Define to 1 if you have the <sys/types.h> header file. */
239178
#define HAVE_SYS_TYPES_H 1
240179

241-
/* Define to 1 if you have the <unistd.h> header file. */
242-
//#define HAVE_UNISTD_H 1
243-
244-
/* Define if the visibility attribute is supported. */
245-
#define HAVE_VISIBILITY_ATTRIBUTE 1
246-
247-
/* Define to the sub-directory where libtool stores uninstalled libraries. */
248-
#define LT_OBJDIR ".libs/"
249-
250180
/* Define to the address where bug reports for this package should be sent. */
251181
#define PACKAGE_BUGREPORT "https://github.com/bitcoin/bitcoin/issues"
252182

@@ -256,76 +186,21 @@
256186
/* Define to the full name and version of this package. */
257187
#define PACKAGE_STRING "Bitcoin Core 22.99.0"
258188

259-
/* Define to the one symbol short name of this package. */
260-
#define PACKAGE_TARNAME "bitcoin"
261-
262189
/* Define to the home page for this package. */
263190
#define PACKAGE_URL "https://bitcoincore.org/"
264191

265192
/* Define to the version of this package. */
266193
#define PACKAGE_VERSION "22.99.0"
267194

268-
/* Define to necessary symbol if this constant uses a non-standard name on
269-
your system. */
270-
/* #undef PTHREAD_CREATE_JOINABLE */
271-
272-
/* Define this symbol if the qt platform is cocoa */
273-
/* #undef QT_QPA_PLATFORM_COCOA */
274-
275195
/* Define this symbol if the minimal qt platform exists */
276196
#define QT_QPA_PLATFORM_MINIMAL 1
277197

278198
/* Define this symbol if the qt platform is windows */
279199
#define QT_QPA_PLATFORM_WINDOWS 1
280200

281-
/* Define this symbol if the qt platform is xcb */
282-
/* #undef QT_QPA_PLATFORM_XCB */
283-
284201
/* Define this symbol if qt plugins are static */
285202
#define QT_STATICPLUGIN 1
286203

287-
/* Define to 1 if you have the ANSI C header files. */
288-
#define STDC_HEADERS 1
289-
290-
/* Define to 1 if strerror_r returns char *. */
291-
/* #undef STRERROR_R_CHAR_P */
292-
293-
/* Define this symbol to build in assembly routines */
294-
//#define USE_ASM 1
295-
296-
/* Define if dbus support should be compiled in */
297-
/* #undef USE_DBUS */
298-
299-
/* Define if QR support should be compiled in */
300-
//#define USE_QRCODE 1
301-
302-
/* UPnP support not compiled if undefined, otherwise value (0 or 1) determines
303-
default state */
304-
//#define USE_UPNP 0
305-
306-
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
307-
significant byte first (like Motorola and SPARC, unlike Intel). */
308-
#if defined AC_APPLE_UNIVERSAL_BUILD
309-
# if defined __BIG_ENDIAN__
310-
# define WORDS_BIGENDIAN 1
311-
# endif
312-
#else
313-
# ifndef WORDS_BIGENDIAN
314-
/* # undef WORDS_BIGENDIAN */
315-
# endif
316-
#endif
317-
318-
/* Enable large inode numbers on Mac OS X 10.5. */
319-
#ifndef _DARWIN_USE_64_BIT_INODE
320-
# define _DARWIN_USE_64_BIT_INODE 1
321-
#endif
322-
323-
/* Number of bits in a file offset, on hosts where this is settable. */
324-
#define _FILE_OFFSET_BITS 64
325-
326-
/* Define for large files, on AIX-style hosts. */
327-
/* #undef _LARGE_FILES */
328-
329204
/* Windows Universal Platform constraints */
330205
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
331206
/* Either a desktop application without API restrictions, or and older system

0 commit comments

Comments
 (0)