Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 252591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:41:26+00:00 2026-05-11T21:41:26+00:00

I am writing an application that I would like to release binaries for on

  • 0

I am writing an application that I would like to release binaries for on Mac, Windows, and Linux. I have code that compiles under Mac and Linux, but under Windows, it does not.

This is because of Windows lack of a strcasecmp. I’ve read a little bit about how I can create some sort of header to wrap my code, but I don’t really understand this concept too well. I’ve worked on the code on my Mac with just vim and make, but now I’m trying to switch it all over to Visual Studio.

Is there some way I can set my project up to include Windows wrapper headers when I’m building on Windows, but omit them when I’m building on my Mac or Linux box?

This problem is really giving me a headache and I’d appreciate any suggestions!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T21:41:27+00:00Added an answer on May 11, 2026 at 9:41 pm

    You could do

    #ifdef WIN32
    #include <windows_specific_header.h>
    #else
    #include <other_header.h>
    

    There is also an MS Visual Studio-specific macro: _MSC_VER, so

    #ifdef _MSC_VER
    

    would also work here.

    There is also WINVER define in windows.h.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application that is compatible with Android 1.6, but I would like
I'm writing an application that has an SWT GUI currently, but would like the
I'm writing an application wherein I have some debug code that I do not
I am writing a simple application that I would like to control with a
I'm writing an Android application that would like to verify that a string produced
I'm writing an application that uses Apple's kiosk mode. I would like to disable
Basically, I have an application that runs every 15 minutes. I would like this
I am writing an C++ application that could be compiled under Linux (gcc 4.3)
I'm currently writing an application that I would like to open in a new
I am writing a Facebook application that would use a Postgres DB along with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.