Skip to content

Commit 541ad58

Browse files
committed
ldgm: fixed including
- use the path relative to src/ (-I. will be removed) - remove mkdir compat from config_win32.h (is now in compat/misc.h)
1 parent ef9035b commit 541ad58

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

src/config_win32.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ void ShowMessage(int level, char *msg);
207207
#include <sys/stat.h>
208208
#endif
209209

210-
#ifdef WANT_MKDIR
211-
#include <direct.h>
212-
#define mkdir(path, mode) _mkdir(path)
213-
#endif
214-
215210
#define SHUT_RD SD_RECEIVE
216211
#define SHUT_WR SD_SEND
217212
#define SHUT_RDWR SD_BOTH

src/rtp/ldgm.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3636
*/
3737

38-
#define WANT_MKDIR
39-
#include "config_unix.h"
40-
#include "config_win32.h"
41-
4238
#include <cerrno>
4339
#include <climits>
4440
#include <cstdio>
@@ -51,16 +47,18 @@
5147
#include <sys/types.h>
5248
#include <unistd.h>
5349

50+
#define WANT_MKDIR
51+
#include "compat/misc.h" // for mkdir
5452
#include "debug.h"
5553
#include "host.h"
5654
#include "ldgm.h"
5755
#include "lib_common.h"
5856

59-
#include "ldgm/src/ldgm-session.h"
60-
#include "ldgm/src/ldgm-session-cpu.h"
61-
#include "ldgm/src/ldgm-session-gpu.h"
62-
#include "ldgm/matrix-gen/matrix-generator.h"
63-
#include "ldgm/matrix-gen/ldpc-matrix.h" // LDGM_MAX_K
57+
#include "../ldgm/src/ldgm-session.h"
58+
#include "../ldgm/src/ldgm-session-cpu.h"
59+
#include "../ldgm/src/ldgm-session-gpu.h"
60+
#include "../ldgm/matrix-gen/matrix-generator.h"
61+
#include "../ldgm/matrix-gen/ldpc-matrix.h" // LDGM_MAX_K
6462

6563
#include "rtp/rtp.h"
6664
#include "rtp/rtp_callback.h"

src/rtp/ldgm_gpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ldgm/src/ldgm-session-gpu.h"
1+
#include "../ldgm/src/ldgm-session-gpu.h"
22
#include "ldgm.h"
33
#include "lib_common.h"
44

0 commit comments

Comments
 (0)