Changeset 63a4a75 in subsurface


Ignore:
Timestamp:
Jun 22, 2017, 5:53:53 PM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
b109b51
Parents:
d58de37
Message:

Warn when not compiling against the matching libdc version

Signed-off-by: Dirk Hohndel <dirk@…>

Location:
core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/btdiscovery.cpp

    r8cd711f r63a4a75  
    9595
    9696#if defined(BT_SUPPORT)
    97 
     97#if defined(SSRF_CUSTOM_IO)
    9898extern void addBtUuid(QBluetoothUuid uuid);
     99#endif
    99100extern QHash<QString, QStringList> productList;
    100101extern QStringList vendorList;
     
    102103void BTDiscovery::btDeviceDiscovered(const QBluetoothDeviceInfo &device)
    103104{
     105#if defined(SSRF_CUSTOM_IO)
    104106        btPairedDevice this_d;
    105107        this_d.address = device.address();
     
    114116
    115117        btDeviceDiscoveredMain(this_d);
     118#endif
    116119}
    117120
  • core/libdivecomputer.c

    radd253c r63a4a75  
    1818#include "libdivecomputer.h"
    1919
     20#if !defined(SSRF_LIBDC_VERSION)
     21#pragma message "You are not compiling against the Subsurface branch of libdivecomputer"
     22#pragma message "While this may still work, you are missing important features of Subsurface"
     23#pragma message "Please get it from http://github.com/Subsurface-divelog/libdc Subsurface-branch"
     24#else
     25#if !defined(SSRF_CUSTOM_IO)
     26#pragma message "You are compiling against an older version of the Subsurface branch of libdivecomputer"
     27#pragma message "which doesn't support the new SSRF_CUSTOM_IO model. Please update libdc"
     28#endif
     29#endif
    2030//
    2131// If we have an old libdivecomputer, it doesn't
Note: See TracChangeset for help on using the changeset viewer.