Bläddra i källkod

Fixed some errors in code position relative to __cplusplus directives

main
Ludovic 'Archivist' Lagouardette 2 år sedan
förälder
incheckning
b2cba34c45
2 ändrade filer med 2 tillägg och 4 borttagningar
  1. +1
    -2
      LibSnugLog/public_include/sl/register.h
  2. +1
    -2
      LibSnugLog/public_include/sl/transaction.h

+ 1
- 2
LibSnugLog/public_include/sl/register.h Visa fil

@ -11,19 +11,18 @@
#include "sl/strategies.h"
#ifdef __cplusplus
struct sl_buffer_strategy;
struct sl_sink_strategy;
struct sl_overflow_strategy;
struct sl_output_strategy;
#ifdef __cplusplus
namespace sl {
using buffer_strategy = sl_buffer_strategy;
using sink_strategy = sl_sink_strategy;
using overflow_strategy = sl_overflow_strategy;
using output_strategy = sl_output_strategy;
}
#else
typedef struct sl_buffer_strategy buffer_strategy;
typedef struct sl_sink_strategy sink_strategy;

+ 1
- 2
LibSnugLog/public_include/sl/transaction.h Visa fil

@ -13,11 +13,10 @@
#endif
#ifdef __cplusplus
struct sl_log_transaction;
struct sl_log_transaction_internals;
#ifdef __cplusplus
namespace sl {
using cstyle_log_transaction = sl_log_transaction;
using cstyle_log_transaction_internals = sl_log_transaction_internals;

Laddar…
Avbryt
Spara