mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 17:11:23 +02:00
Fix conditional build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -62,7 +62,7 @@ static int get_macos_serial(uint8_t *out) {
|
|||||||
|
|
||||||
#pragma comment(lib, "wbemuuid.lib")
|
#pragma comment(lib, "wbemuuid.lib")
|
||||||
|
|
||||||
int get_system_uuid(char *out) {
|
static int get_system_uuid(char *out) {
|
||||||
char serial[64] = {0};
|
char serial[64] = {0};
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
IWbemLocator *locator = NULL;
|
IWbemLocator *locator = NULL;
|
||||||
@@ -184,7 +184,7 @@ static int append_field(char *out, size_t out_len, const char *prefix,const char
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int get_linux_hardware_id(char *out) {
|
static int get_linux_hardware_id(char *out) {
|
||||||
if (!out) {
|
if (!out) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#if !defined (PICO_PLATFORM)
|
#if !defined (PICO_PLATFORM)
|
||||||
#if __APPLE__
|
#if defined(__APPLE__) || defined(_MSC_VER) || defined(__linux__)
|
||||||
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 16
|
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 16
|
||||||
#else
|
#else
|
||||||
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 8
|
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 8
|
||||||
|
|||||||
Reference in New Issue
Block a user