Skip to content

Commit

Permalink
fix: use include guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed May 5, 2024
1 parent 1d5d77b commit 6d86425
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/src/TestHelpers.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#pragma once

#include <ostream>
// Include guard for some compilers not supporting `#pragma once` for prepended
// includes.
#ifndef TEST_HELPERS_HPP_INCLUDED
# define TEST_HELPERS_HPP_INCLUDED

# include <ostream>

// This file is included in all TUs in chatterino-test to avoid ODR violations.
//
Expand All @@ -20,3 +25,5 @@ void PrintTo(const QByteArray &bytes, std::ostream *os);
void PrintTo(QStringView str, std::ostream *os);
void PrintTo(const QString &str, std::ostream *os);
// NOLINTEND(readability-identifier-naming)

#endif
2 changes: 1 addition & 1 deletion tools/crash-handler
Submodule crash-handler updated 1 files
+1 −1 lib/crashpad

0 comments on commit 6d86425

Please sign in to comment.