mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
meson: Make some Meson style more consistent with surrounding code
Author: Tristan Partin <tristan@neon.tech> Discussion: https://www.postgresql.org/message-id/flat/CSPIJVUDZFKX.3KHMOAVGF94RV%40c3po
This commit is contained in:
@ -1146,7 +1146,7 @@ Use -Dreadline=disabled to disable readline support.'''.format(readline_dep))
|
||||
foreach func : check_funcs
|
||||
found = cc.has_function(func, dependencies: [readline],
|
||||
args: test_c_args, include_directories: postgres_inc)
|
||||
cdata.set('HAVE_'+func.to_upper(), found ? 1 : false)
|
||||
cdata.set('HAVE_' + func.to_upper(), found ? 1 : false)
|
||||
endforeach
|
||||
|
||||
check_vars = [
|
||||
@ -1156,7 +1156,7 @@ Use -Dreadline=disabled to disable readline support.'''.format(readline_dep))
|
||||
]
|
||||
|
||||
foreach var : check_vars
|
||||
cdata.set('HAVE_'+var.to_upper(),
|
||||
cdata.set('HAVE_' + var.to_upper(),
|
||||
cc.has_header_symbol(readline_h, var,
|
||||
args: test_c_args, include_directories: postgres_inc,
|
||||
prefix: '#include <stdio.h>',
|
||||
@ -1311,7 +1311,7 @@ if sslopt in ['auto', 'openssl']
|
||||
cdata.set('USE_OPENSSL', 1,
|
||||
description: 'Define to 1 to build with OpenSSL support. (-Dssl=openssl)')
|
||||
cdata.set('OPENSSL_API_COMPAT', '0x10001000L',
|
||||
description: '''Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.''')
|
||||
description: 'Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.')
|
||||
ssl_library = 'openssl'
|
||||
else
|
||||
ssl = not_found_dep
|
||||
@ -1599,8 +1599,7 @@ if cc.links('''
|
||||
|
||||
if not buggy_int128
|
||||
cdata.set('PG_INT128_TYPE', '__int128')
|
||||
cdata.set('ALIGNOF_PG_INT128_TYPE', cc.
|
||||
alignment('__int128', args: test_c_args))
|
||||
cdata.set('ALIGNOF_PG_INT128_TYPE', cc.alignment('__int128', args: test_c_args))
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -89,7 +89,7 @@ install_headers(
|
||||
'c.h',
|
||||
'port.h',
|
||||
'postgres_fe.h',
|
||||
install_dir: dir_include_internal
|
||||
install_dir: dir_include_internal,
|
||||
)
|
||||
|
||||
install_headers(
|
||||
|
Reference in New Issue
Block a user