Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify '#ifdef HAVE_CONFIG_H' declaration #3127

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/common/compat___iob_func.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_getopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* DEALINGS IN THE SOFTWARE.
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_getpass.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_overflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_report_rangecheckfailure.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_strlcat.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/compat_strlcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/libpkcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/common/libscdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/aux-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-asepcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-atrust-acos.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-belpic.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
* language-selection functionality.
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-cac-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-cac.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-cac1.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-cardos.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-coolkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-default.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-dtrust.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* based on card-cardos.c
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-entersafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/* Initially written by Weitao Sun (weitao@ftsafe.com) 2008 */

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef ENABLE_OPENSSL /* empty file without openssl */
Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-epass2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef ENABLE_SM /* empty file without SM enabled */
Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-esteid2018.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-flex.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-gemsafeV1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/* Initially written by David Mattes (david.mattes@boeing.com) */
/* Portuguese eID card support by Joao Poupino (joao.poupino@ist.utl.pt) */

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-idprime.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-jpki.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-masktech.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-mcrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-muscle.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-myeid.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-oberthur.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* best view with tabstop=4
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-openpgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-3.4.pdf
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-piv.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-rtecp.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-rutoken.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-sc-hsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-setcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-skeid.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* based on card-cardos.c
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-starcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card-tcos.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/libopensc/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#if HAVE_CONFIG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

Expand Down