Fix jsonapi generator and OpenSSL macro collisions

This commit is contained in:
jolavillette 2026-05-19 07:57:40 +02:00
parent ffcfda9d02
commit df1642bacd
4 changed files with 26 additions and 9 deletions

View File

@ -190,15 +190,17 @@ def processFile(file):
orderedParamNames.append(pName)
for tmpPN in memberdef.findall('.//parametername'):
tmpParam = paramsMap[tmpPN.text]
tmpD = tmpPN.attrib['direction'] if 'direction' in tmpPN.attrib else ''
pName = getText(tmpPN)
if pName in paramsMap:
tmpParam = paramsMap[pName]
tmpD = tmpPN.attrib['direction'] if 'direction' in tmpPN.attrib else ''
if 'in' in tmpD:
tmpParam._in = True
hasInput = True
if 'out' in tmpD:
tmpParam._out = True
hasOutput = True
if 'in' in tmpD:
tmpParam._in = True
hasInput = True
if 'out' in tmpD:
tmpParam._out = True
hasOutput = True
# Params sanity check
for pmKey in paramsMap:

View File

@ -1,4 +1,4 @@
/*******************************************************************************
/*******************************************************************************
* libretroshare/src/pqi: sslfns.h *
* *
* libretroshare: retroshare core library *
@ -28,6 +28,13 @@
/******************** notify of new Cert **************************/
#ifdef X509_NAME
#undef X509_NAME
#endif
#ifdef X509_EXTENSIONS
#undef X509_EXTENSIONS
#endif
#include <openssl/evp.h>
#include <openssl/x509.h>

View File

@ -41,6 +41,10 @@ enum class RsTorManagerEventCode: uint8_t
TOR_MANAGER_STOPPED = 0x06,
};
#ifdef ERROR
#undef ERROR
#endif
// Status of the Tor hidden service setup/loaded by RS
enum class RsTorHiddenServiceStatus: uint8_t {

View File

@ -38,6 +38,10 @@
#include "util/rsmacrosugar.hpp"
#ifdef ERROR
#undef ERROR
#endif
#ifdef __ANDROID__
enum class RsLoggerCategories
{