Defining directives based on active plugin

I have two managed plugins (c# libraries that I wrote) in my custom pacakge. I want to define a pre-processor directive if it is active in the build so that When somebody uses my package they can call my library functions based on which dll is active. How can I do that ?