Skip to content

Commit

Permalink
Move trivial blob backend to public includes
Browse files Browse the repository at this point in the history
Since private headers are (and also should not be) installed, this
makes it impossible to compile SOCI as an installed package.

Fixes SOCI#1153
  • Loading branch information
Krzmbrzl committed Aug 31, 2024
1 parent 4440c78 commit 55da03c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/soci/mysql/soci-mysql.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#endif

#include <soci/soci-backend.h>
#include <private/soci-trivial-blob-backend.h>
#include <soci/trivial-blob-backend.h>
#ifdef _WIN32
#include <winsock.h> // SOCKET
#endif // _WIN32
Expand Down
2 changes: 1 addition & 1 deletion include/soci/sqlite3/soci-sqlite3.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <cstdint>
#include <vector>
#include <soci/soci-backend.h>
#include <private/soci-trivial-blob-backend.h>
#include <soci/trivial-blob-backend.h>

// Disable flood of nonsense warnings generated for SQLite
#ifdef _MSC_VER
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef SOCI_PRIVATE_SOCI_TRIVIAL_BLOB_BACKEND_H_INCLUDED
#define SOCI_PRIVATE_SOCI_TRIVIAL_BLOB_BACKEND_H_INCLUDED
#ifndef SOCI_TRIVIAL_BLOB_BACKEND_H_INCLUDED
#define SOCI_TRIVIAL_BLOB_BACKEND_H_INCLUDED

#include "soci/soci-backend.h"

Expand Down

0 comments on commit 55da03c

Please sign in to comment.