mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-25 10:17:22 +00:00
Moved min/max macros from global scope in header file to translation unit exlusice c files
This commit is contained in:
@@ -21,6 +21,14 @@
|
||||
#include <errno.h>
|
||||
#include "ble_hs_priv.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
static uint16_t ble_att_preferred_mtu_val;
|
||||
|
||||
/** Dispatch table for incoming ATT requests. Sorted by op code. */
|
||||
|
||||
@@ -26,6 +26,14 @@
|
||||
#include "ble_hs_priv.h"
|
||||
#include "ble_hs_resolv_priv.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#if MYNEWT
|
||||
#include "bsp/bsp.h"
|
||||
#else
|
||||
|
||||
@@ -60,6 +60,14 @@
|
||||
#include "host/ble_gap.h"
|
||||
#include "ble_hs_priv.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
/*****************************************************************************
|
||||
* $definitions / declarations *
|
||||
*****************************************************************************/
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
#include "host/ble_hs_hci.h"
|
||||
#include "ble_hs_priv.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
uint16_t
|
||||
ble_hs_hci_util_handle_pb_bc_join(uint16_t handle, uint8_t pb, uint8_t bc)
|
||||
{
|
||||
|
||||
@@ -50,6 +50,14 @@
|
||||
#include "ble_hs_resolv_priv.h"
|
||||
#include "../store/config/src/ble_store_config_priv.h"
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#if NIMBLE_BLE_SM
|
||||
|
||||
/** Procedure timeout; 30 seconds. */
|
||||
|
||||
@@ -26,14 +26,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#include "syscfg/syscfg.h"
|
||||
#include "nimble/nimble_npl.h"
|
||||
|
||||
|
||||
@@ -40,6 +40,14 @@
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
#ifndef min
|
||||
#define min(a, b) ((a)<(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a)>(b)?(a):(b))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @addtogroup OSKernel
|
||||
* @{
|
||||
|
||||
Reference in New Issue
Block a user