C library naming conventions

前端 未结 8 1861
一向
一向 2021-01-31 05:50

Introduction

Hello folks, I recently learned to program in C! (This was a huge step for me, since C++ was the first language, I had contact with and scared me off for

8条回答
  •  感情败类
    2021-01-31 06:16

    Since you are exposing functions with the same name client cannot include your library header files along with other header files which have name collision. In this case you add the following in the header file before the function prototype and this wouldn't effect client usage as well.

    #define add myuniquelibname_add
    

    Please note this is a quick fix solution and should be the last option.

提交回复
热议问题