Skip to content

Commit

Permalink
More "#pragma once" handling for the OS3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Futaura committed Dec 7, 2023
1 parent d8485f7 commit 9c4687b
Show file tree
Hide file tree
Showing 23 changed files with 69 additions and 23 deletions.
4 changes: 3 additions & 1 deletion openssl/include/crypto/encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_CRYPTO_ENCODER_H
# define OSSL_CRYPTO_ENCODER_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/types.h>

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/crypto/md32_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@

#ifndef OSSL_CRYPTO_MD32_COMMON_H
# define OSSL_CRYPTO_MD32_COMMON_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/crypto.h>

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/der.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_DER_H
# define OSSL_INTERNAL_DER_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/bn.h>
# include "internal/packet.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/deterministic_nonce.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_DETERMINISTIC_NONCE_H
# define OSSL_INTERNAL_DETERMINISTIC_NONCE_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/bn.h>

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/event_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_EVENT_QUEUE_H
# define OSSL_INTERNAL_EVENT_QUEUE_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "internal/priority_queue.h"
# include "internal/time.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/hpke_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_HPKE_UTIL_H
# define OSSL_INTERNAL_HPKE_UTIL_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

/* Constants from RFC 9180 Section 7.1 and 7.3 */
# define OSSL_HPKE_MAX_SECRET 64
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_LIST_H
# define OSSL_INTERNAL_LIST_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <string.h>
# include <assert.h>
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/packet_quic.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_PACKET_QUIC_H
# define OSSL_INTERNAL_PACKET_QUIC_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "internal/packet.h"
# include "internal/quic_vlint.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/priority_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_PRIORITY_QUEUE_H
# define OSSL_INTERNAL_PRIORITY_QUEUE_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <stdlib.h>
# include <openssl/e_os2.h>
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/quic_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_QUIC_STREAM_H
# define OSSL_INTERNAL_QUIC_STREAM_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

#include "internal/e_os.h"
#include "internal/time.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/quic_stream_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_QUIC_STREAM_MAP_H
# define OSSL_INTERNAL_QUIC_STREAM_MAP_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "internal/e_os.h"
# include "internal/time.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/quic_vlint.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_QUIC_VLINT_H
# define OSSL_INTERNAL_QUIC_VLINT_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "internal/e_os.h"

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/quic_wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_QUIC_WIRE_H
# define OSSL_INTERNAL_QUIC_WIRE_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "internal/e_os.h"
# include "internal/time.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/recordmethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_RECORDMETHOD_H
# define OSSL_INTERNAL_RECORDMETHOD_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/ssl.h>

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/ring_buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_RING_BUF_H
# define OSSL_INTERNAL_RING_BUF_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/e_os2.h> /* For 'ossl_inline' */
# include "internal/safe_math.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/safe_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_INTERNAL_SAFE_MATH_H
# define OSSL_INTERNAL_SAFE_MATH_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/e_os2.h> /* For 'ossl_inline' */

Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@

#ifndef OSSL_INTERNAL_SSL_H
# define OSSL_INTERNAL_SSL_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

typedef void (*ossl_msg_cb)(int write_p, int version, int content_type,
const void *buf, size_t len, SSL *ssl, void *arg);
Expand Down
4 changes: 3 additions & 1 deletion openssl/include/internal/tsan_assist.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@

#ifndef OSSL_INTERNAL_TSAN_ASSIST_H
# define OSSL_INTERNAL_TSAN_ASSIST_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& !defined(__STDC_NO_ATOMICS__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_PROV_CIPHERCOMMON_H
# define OSSL_PROV_CIPHERCOMMON_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/params.h>
# include <openssl/core_dispatch.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_PROV_CIPHERCOMMON_AEAD_H
# define OSSL_PROV_CIPHERCOMMON_AEAD_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# define UNINITIALISED_SIZET ((size_t)-1)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_PROV_CIPHERCOMMON_CCM_H
# define OSSL_PROV_CIPHERCOMMON_CCM_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include "ciphercommon_aead.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

#ifndef OSSL_PROV_CIPHERCOMMON_GCM_H
# define OSSL_PROV_CIPHERCOMMON_GCM_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

# include <openssl/aes.h>
# include "ciphercommon_aead.h"
Expand Down
4 changes: 3 additions & 1 deletion openssl/providers/implementations/include/prov/hmac_drbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

#ifndef OSSL_PROV_HMAC_DRBG_H
# define OSSL_PROV_HMAC_DRBG_H
# pragma once
# if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3))
# pragma once
# endif

#include <openssl/evp.h>
#include "prov/provider_util.h"
Expand Down

0 comments on commit 9c4687b

Please sign in to comment.