- This tutorial teaches you how to install the free VLC media player on your computer or smartphone. VLC is available for Windows, Mac, iPhone, and Android platforms.
- Windows PCs
- mac OS
- Android
- VLC media player
- Simple, fast and powerful
- Simple, fast and powerful
- Customize
- Customize
- Screenshots
- Official Downloads of VLC media player
- Windows
- Apple Platforms
- Sources
- GNU/Linux
- Other Systems
- How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? [duplicate]
- 3 Answers 3
This tutorial teaches you how to install the free VLC media player on your computer or smartphone. VLC is available for Windows, Mac, iPhone, and Android platforms.
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols. Why should you choose VLC player?
Windows PCs
Open the VLC website. Type in your computer’s web browser or click above for direct access.
Click Download VLC. It’s an orange button on the right side of the page.
Select a download location if prompted. Doing so will allow the VLC setup file to download onto your computer.
The VLC file will download automatically, so if you aren’t prompted for a download location, skip this step.
Click Yes when prompted. Doing so opens the installation window.
Select a language. When asked, click the language drop-down box and select the language you want to use for VLC Media Player, then click OK to proceed.
Click Next three times. This will take you to the installation page.
Click Install. It’s at the bottom of the page. Doing so installs VLC Media Player on your computer.
Run VLC Media Player. Immediately after installing VLC, you can run it by making sure the «Run VLC media player» box is checked and clicking Finish.When you want to run VLC in the future, you’ll double-click the VLC app icon on your desktop or select it from Start.
mac OS
Open the VLC website. Type in your computer’s web browser or click above for direct access.
Click Download VLC. It’s an orange button on the right side of the page.
Select a download location if prompted. Doing so will allow the VLC setup file to download onto your computer.
The VLC file will download automatically, so if you aren’t prompted for a download location, skip this step.
Open the downloaded DMG file. Go to the folder into which your browser downloads files, then double-click the VLC DMG file. This will open the installation window.
Click and drag the VLC app icon onto the «Applications» folder. The «Applications» folder is on the right side of the window, while the traffic cone-shaped VLC app icon is on the left.
Doing so will install VLC on your computer.
Run VLC. The first time you open VLC after installing it, do the following:
Double-click the VLC app icon in the Applications folder.
Wait for your Mac to verify VLC.
Android
Open your Android’s Google Play Store. Tap the Google Play Store app icon, which resembles a multi-colored triangle on a white background.
Tap the search bar. It’s at the top of the screen. Your Android’s on-screen keyboard will appear.
Open the VLC page. Type in vlc, then tap VLC for Android in the resulting drop-down menu.
Tap INSTALL. This is on the right side of the page. Doing so prompts VLC to begin installing onto your Android.If prompted, tap ALLOW after tapping INSTALL to confirm the download.
You can open VLC directly from within the Play Store by tapping OPEN when VLC finishes installing.
VLC media player
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files, and various streaming protocols.
Simple, fast and powerful
Simple, fast and powerful
- Plays everything — Files, Discs, Webcams, Devices and Streams.
- Plays most codecs with no codec packs needed — MPEG-2, MPEG-4, H.264, MKV, WebM, WMV, MP3.
- Runs on all platforms — Windows, Linux, Mac OS X, Unix, iOS, Android .
- Completely Free — no spyware, no ads and no user tracking.
Customize
Customize
Screenshots
Official Downloads of VLC media player
Windows
Apple Platforms
Sources
You can also directly get the source code.
GNU/Linux
Other Systems
Legal | Report Trademark Abuse
VideoLAN, VLC, VLC media player and x264 are trademarks internationally registered by the VideoLAN non-profit organization.
VideoLAN software is licensed under various open-source licenses: use and distribution are defined by each software license.
Design by Made By Argon. Some icons are licensed under the CC BY-SA 3.0+.
The VLC cone icon was designed by Richard Øiestad. Icons for VLMC, DVBlast and x264 designed by Roman Khramov.
How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? [duplicate]
If there’s some cross-platform C/C++ code that should be compiled on Mac OS X, iOS, Linux, Windows, how can I detect them reliably during preprocessor process?
3 Answers 3
There are predefined macros that are used by most compilers, you can find the list here. GCC compiler predefined macros can be found here. Here is an example for gcc:
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) //define something for Windows (32-bit and 64-bit, this part is common) #ifdef _WIN64 //define something for Windows (64-bit only) #else //define something for Windows (32-bit only) #endif #elif __APPLE__ #include #if TARGET_IPHONE_SIMULATOR // iOS, tvOS, or watchOS Simulator #elif TARGET_OS_MACCATALYST // Mac's Catalyst (ports iOS API into Mac, like UIKit). #elif TARGET_OS_IPHONE // iOS, tvOS, or watchOS device #elif TARGET_OS_MAC // Other kinds of Apple platforms #else # error "Unknown Apple platform" #endif #elif __ANDROID__ // Below __linux__ check should be enough to handle Android, // but something may be unique to Android. #elif __linux__ // linux #elif __unix__ // all unices not caught above // Unix #elif defined(_POSIX_VERSION) // POSIX #else # error "Unknown compiler" #endif
The defined macros depend on the compiler that you are going to use.
The _WIN64 #ifdef can be nested into the _WIN32 #ifdef because _WIN32 is even defined when targeting the Windows x64 version. This prevents code duplication if some header includes are common to both (also WIN32 without underscore allows IDE to highlight the right partition of code).