Skip to content

Commit

Permalink
fixes #146 - workaround for shadow compilation warnings on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Dec 3, 2023
1 parent 6f8a1ab commit 99318ed
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/imap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "imap.h"

#include "libetpan_help.h"
#include <libetpan/imapdriver_tools.h>
#include <libetpan/mailimap.h>

Expand Down
29 changes: 29 additions & 0 deletions src/libetpan_help.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// libetpan_help.h
//
// Copyright (c) 2023 Kristofer Berggren
// All rights reserved.
//
// nmail is distributed under the MIT license, see LICENSE for details.

#pragma once

// @todo: This is a temporary workaround to fix shadowing compilation warnings,
// to be removed eventually.

#ifdef __cplusplus
extern "C" {
#endif

struct _mailstream;
typedef struct _mailstream mailstream;
void mailstream_cancel(mailstream * s);

struct mailimap;
typedef struct mailimap mailimap;
struct mailimap_capability_data;
typedef struct mailimap_capability_data mailimap_capability_data;
int mailimap_capability(mailimap*, mailimap_capability_data**);

#ifdef __cplusplus
}
#endif
1 change: 1 addition & 0 deletions src/loghelp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <sstream>
#include <string>

#include "libetpan_help.h"
#include <libetpan/mailimap_types.h>
#include <libetpan/mailsmtp_types.h>

Expand Down
2 changes: 1 addition & 1 deletion src/nmail.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
.TH NMAIL "1" "November 2023" "nmail v4.33" "User Commands"
.TH NMAIL "1" "November 2023" "nmail v4.34" "User Commands"
.SH NAME
nmail \- ncurses mail
.SH SYNOPSIS
Expand Down
1 change: 1 addition & 0 deletions src/sasl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "sasl.h"

#include "libetpan_help.h"
#include <libetpan/mailsmtp_types.h>
#include <sasl/sasl.h>

Expand Down
1 change: 1 addition & 0 deletions src/smtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <sys/socket.h>

#include "libetpan_help.h"
#include <libetpan/mailimf.h>
#include <libetpan/mailmime.h>
#include <libetpan/mailsmtp.h>
Expand Down
1 change: 1 addition & 0 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/limits.h>
#endif

#include "libetpan_help.h"
#include <libetpan/mailimap.h>
#include <libetpan/mailmime.h>
#include <ncurses.h>
Expand Down
2 changes: 1 addition & 1 deletion src/version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "version.h"

#define NMAIL_VERSION "4.33"
#define NMAIL_VERSION "4.34"

std::string Version::GetBuildOs()
{
Expand Down

0 comments on commit 99318ed

Please sign in to comment.